Bram Moolenaar
26910de8b0
patch 8.1.1547: functionality of bt_nofile() is confusing
...
Problem: Functionality of bt_nofile() is confusing.
Solution: Split into bt_nofile() and bt_nofilename().
2019-06-15 19:37:15 +02:00
Bram Moolenaar
64416127fc
patch 8.1.1489: sign order wrong when priority was changed
...
Problem: Sign order wrong when priority was changed.
Solution: Reorder signs when priority is changed. (Yegappan Lakshmanan,
closes #4502 )
2019-06-07 21:37:13 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
51e14387f1
patch 8.1.1393: unnecessary type casts
...
Problem: Unnecessary type casts.
Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-25 20:21:28 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00
Bram Moolenaar
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
2019-05-24 18:54:09 +02:00
Bram Moolenaar
4ca41534b7
patch 8.1.1312: Coverity warning for using uninitialized variable
...
Problem: Coverity warning for using uninitialized variable.
Solution: Clear exarg_T.
2019-05-09 21:48:37 +02:00
Bram Moolenaar
8ffc7c8b5f
patch 8.1.1281: cannot specify a count with :chistory
...
Problem: Cannot specify a count with :chistory.
Solution: Add a count to :chistory and :lhistory. (Yegappan Lakshmanan,
closes #4344 )
2019-05-05 21:00:26 +02:00
Bram Moolenaar
cf6a55c4b0
patch 8.1.1275: cannot navigate to errors before/after the cursor
...
Problem: Cannot navigate to errors before/after the cursor.
Solution: Add the :cbefore and :cafter commands. (Yegappan Lakshmanan,
closes #4340 )
2019-05-05 15:02:30 +02:00
Bram Moolenaar
25190db225
patch 8.1.1261: no error for quickfix commands with negative range
...
Problem: No error for quickfix commands with negative range.
Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make
assert_fails() show the command if the error doesn't match.
2019-05-04 15:05:28 +02:00
Bram Moolenaar
3ff33114d7
patch 8.1.1256: cannot navigate through errors relative to the cursor
...
Problem: Cannot navigate through errors relative to the cursor.
Solution: Add :cabove, :cbelow, :labove and :lbelow. (Yegappan Lakshmanan,
closes #4316 )
2019-05-03 21:56:35 +02:00
Bram Moolenaar
36d502225c
patch 8.1.1245: ":copen 10" sets height in full-height window
...
Problem: ":copen 10" sets height in full-height window. (Daniel Hahler)
Solution: Don't set the height if the quickfix window is full height.
(closes #4325 )
2019-05-02 20:17:40 +02:00
Bram Moolenaar
87f59b09ea
patch 8.1.1112: duplicate code in quickfix file
...
Problem: Duplicate code in quickfix file.
Solution: Move code into functions. (Yegappan Lakshmanan, closes #4207 )
2019-04-04 14:04:11 +02:00
Bram Moolenaar
95946f1209
patch 8.1.1098: quickfix code duplication
...
Problem: Quickfix code duplication.
Solution: Refactor the qf_init_ext() function. (Yegappan Lakshmanan,
closes #4193 )
2019-03-31 15:31:59 +02:00
Bram Moolenaar
a16123a666
patch 8.1.1062: quickfix code is repeated
...
Problem: Quickfix code is repeated.
Solution: Define FOR_ALL_QFL_ITEMS(). Move some code to separate functions.
(Yegappan Lakshmanan, closes #4166 )
2019-03-28 20:31:07 +01:00
Bram Moolenaar
9afe5e9cc0
patch 8.1.1036: quickfix function arguments are inconsistent
...
Problem: Quickfix function arguments are inconsistent.
Solution: Pass a list pointer to more functions. (Yegappan Lakshmanan,
closes #4149 )
2019-03-22 14:16:06 +01:00
Bram Moolenaar
0398e00a1b
patch 8.1.1030: quickfix function arguments are inconsistent
...
Problem: Quickfix function arguments are inconsistent.
Solution: Pass a list pointer instead of info and index. (Yegappan
Lakshmanan, closes #4135 )
2019-03-21 21:12:49 +01:00
Bram Moolenaar
647e24ba3d
patch 8.1.1015: quickfix buffer shows up in list, can't get buffer number
...
Problem: Quickfix buffer shows up in list, can't get buffer number.
Solution: Make the quickfix buffer unlisted when the quickfix window is
closed. get the quickfix buffer number with getqflist().
(Yegappan Lakshmanan, closes #4113 )
2019-03-17 16:39:46 +01:00
Bram Moolenaar
4aa47b28f4
patch 8.1.1006: repeated code in quickfix support
...
Problem: Repeated code in quickfix support.
Solution: Move code to functions. (Yegappan Lakshmanan, closes #4091 )
2019-03-13 06:51:53 +01:00
Bram Moolenaar
d82a81cad9
patch 8.1.0988: deleting location list buffer breaks location list window
...
Problem: Deleting a location list buffer breaks location list window
functionality.
Solution: (Yegappan Lakshmanan, closes #4056 )
2019-03-02 07:57:18 +01:00
Bram Moolenaar
eeb1b9c7ed
patch 8.1.0892: failure when closing a window when location list is in use
...
Problem: Failure when closing a window when location list is in use.
Solution: Handle the situation gracefully. Make sure memory for 'switchbuf'
is not freed at the wrong time. (Yegappan Lakshmanan,
closes #3928 )
2019-02-10 22:59:04 +01:00
Bram Moolenaar
ee8188fc74
patch 8.1.0877: new buffer used every time the quickfix window is opened
...
Problem: New buffer used every time the quickfix window is opened.
Solution: Reuse the buffer. (Yegappan Lakshmanan, closes #3902 )
2019-02-05 21:23:04 +01:00
Bram Moolenaar
c45eb770a5
patch 8.1.0859: "%v" in 'errorformat' does handle multi-byte characters
...
Problem: "%v" in 'errorformat' does handle multi-byte characters.
Solution: Handle multi-byte characters. (Yegappan Lakshmanan, closes #3700 )
2019-01-31 14:27:04 +01:00
Bram Moolenaar
6aba96dd57
patch 8.1.0828: still using FEAT_VIRTUALEDIT
...
Problem: Still using FEAT_VIRTUALEDIT.
Solution: Remove last use of FEAT_VIRTUALEDIT.
2019-01-26 17:43:21 +01:00
Bram Moolenaar
a12a161b8c
patch 8.1.0809: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 3.
2019-01-24 16:39:02 +01:00
Bram Moolenaar
32526b3c18
patch 8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
2019-01-19 17:43:09 +01:00
Bram Moolenaar
b5443cc46d
patch 8.1.0753: printf format not checked for semsg()
...
Problem: printf format not checked for semsg().
Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle,
closes #3805 )
2019-01-15 20:19:40 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
5b69c22fd2
patch 8.1.0720: cannot easily change the current quickfx list index
...
Problem: Cannot easily change the current quickfx list index.
Solution: Add the "idx" argument to setqflist(). (Yegappan Lakshmanan,
closes #3701 )
2019-01-11 14:50:06 +01:00
Bram Moolenaar
9752c72f49
patch 8.1.0622: adding quickfix items marks items as valid errors
...
Problem: Adding quickfix items marks items as valid errors. (Daniel Hahler)
Solution: Check when items are valid. (Yegappan Lakshmanan, closes #3683 ,
closes #3633 )
2018-12-22 16:49:34 +01:00
Bram Moolenaar
8f66717a1f
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()
...
Problem: Using illogical name for get_dict_number()/get_dict_string().
Solution: Rename to start with dict_.
2018-12-14 15:38:31 +01:00
Bram Moolenaar
2d67d307ee
patch 8.1.0532: cannot distinguish between quickfix and location list
...
Problem: Cannot distinguish between quickfix and location list.
Solution: Add an explicit type variable. (Yegappan Lakshmanan)
2018-11-16 18:46:02 +01:00
Bram Moolenaar
b244373bec
patch 8.1.0523: opening window from quickfix leaves empty buffer behind
...
Problem: Opening window from quickfix leaves empty buffer behind.
Solution: Add qf_jump_newwin(). (Yegappan Lakshmanan, closes #2574 )
2018-11-11 22:50:27 +01:00
Bram Moolenaar
1c29943416
patch 8.1.0499: :2vimgrep causes an ml_get error
...
Problem: :2vimgrep causes an ml_get error
Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
2018-10-28 14:36:09 +01:00
Bram Moolenaar
b6f1480a6a
patch 8.1.0489: crash when autocmd clears vimpgrep location list
...
Problem: Crash when autocmd clears vimpgrep location list.
Solution: Return from qf_jump_edit_buffer() early. (Yegappan Lakshmanan)
2018-10-21 18:47:43 +02:00
Bram Moolenaar
9f84ded38b
patch 8.1.0488: using freed memory in quickfix code
...
Problem: Using freed memory in quickfix code. (Dominique Pelle)
Solution: Add the quickfix_busy() flag to postpone deleting quickfix lists
until it is safe. (Yegappan Lakshmanan, closes #3538 )
2018-10-20 20:54:02 +02:00
Bram Moolenaar
108e7b422b
patch 8.1.0469: too often indexing in qf_lists[]
...
Problem: Too often indexing in qf_lists[].
Solution: Use a qf_list_T pointer. (Yegappan Lakshmanan)
2018-10-11 17:39:12 +02:00
Bram Moolenaar
00bf8cd211
patch 8.1.0461: quickfix code uses too many /* */ comments
...
Problem: Quickfix code uses too many /* */ comments.
Solution: Change to // comments. (Yegappan Lakshmanan)
2018-10-07 20:26:20 +02:00
Bram Moolenaar
019dfe6855
patch 8.1.0455: checking for empty quickfix stack is not consistent
...
Problem: Checking for empty quickfix stack is not consistent.
Solution: Use qf_stack_empty(). (Yegappan Lakshmanan)
2018-10-07 14:38:49 +02:00
Bram Moolenaar
b434ae2a1f
patch 8.1.0438: the ex_make() function is too long
...
Problem: The ex_make() function is too long.
Solution: Split it into several functions. (Yegappan Lakshmanan)
2018-09-28 23:09:55 +02:00
Bram Moolenaar
09037503ea
patch 8.1.0434: copy_loclist() is too long
...
Problem: copy_loclist() is too long.
Solution: Split in multiple functions. (Yegappan Lakshmanan)
2018-09-25 22:08:14 +02:00
Bram Moolenaar
6dae96ef7a
patch 8.1.0431: the qf_jump() function is too long
...
Problem: The qf_jump() function is too long.
Solution: Refactor to split it into several functions. (Yegappan Lakshmanan)
2018-09-24 21:50:12 +02:00
Bram Moolenaar
476c0db002
patch 8.1.0410: the ex_copen() function is too long
...
Problem: The ex_copen() function is too long.
Solution: Refactor to split off two functions. (Yegappan Lakshmanan)
2018-09-19 21:56:02 +02:00
Bram Moolenaar
fe15b7dfa6
patch 8.1.0407: quickfix code mixes using the stack and a list pointer
...
Problem: Quickfix code mixes using the stack and a list pointer.
Solution: Use a list pointer in more places. (Yegappan Lakshmanan,
closes #3443 )
2018-09-18 22:50:06 +02:00
Bram Moolenaar
c9cc9c78f2
patch 8.1.0345: cannot get the window id associated with the location list
...
Problem: Cannot get the window id associated with the location list.
Solution: Add the "filewinid" argument to getloclist(). (Yegappan
Lakshmanan, closes #3202 )
2018-09-02 15:18:42 +02:00
Bram Moolenaar
6f6ef7c195
patch 8.1.0330: the qf_add_entries() function is too long
...
Problem: The qf_add_entries() function is too long.
Solution: Split in two parts. (Yegappan Lakshmanan)
2018-08-28 22:07:44 +02:00
Bram Moolenaar
c631f2df62
patch 8.1.0315: helpgrep with language doesn't work properly
...
Problem: Helpgrep with language doesn't work properly. (Takuya Fujiwara)
Solution: Check for the language earlier. (Hirohito Higashi)
2018-08-21 21:58:13 +02:00
Bram Moolenaar
4d77c65a9e
patch 8.1.0293: checks for type of stack is cryptic
...
Problem: Checks for type of stack is cryptic.
Solution: Define IS_QF_STACK() and IS_LL_STACK(). (Yegappan Lakshmanan)
2018-08-18 19:59:54 +02:00
Bram Moolenaar
2dfcef4c08
patch 8.1.0289: cursor moves to wrong column after quickfix jump
...
Problem: Cursor moves to wrong column after quickfix jump.
Solution: Set the curswant flag. (Andy Massimino, closes #3331 )
2018-08-15 22:29:51 +02:00
Bram Moolenaar
396659592f
patch 8.1.0288: quickfix code uses cmdidx too often
...
Problem: Quickfix code uses cmdidx too often.
Solution: Add is_loclist_cmd(). (Yegappan Lakshmanan)
2018-08-15 20:59:48 +02:00