Jan Edmund Lazo
a5637597a6
vim-patch:8.0.1427: the :leftabove modifier doesn't work for :copen
...
Problem: The :leftabove modifier doesn't work for :copen.
Solution: Respect the split modifier. (Yegappan Lakshmanan, closes vim/vim#2496 )
de04654ddc
2018-11-19 21:16:26 -05:00
Justin M. Keyes
11ae6f418d
fix warning: null arg passed to 'nonnull' param
...
Found by clang scan-build 5.0
2018-10-21 23:25:02 +02:00
Jan Edmund Lazo
db90c0c9bf
globals: KeyTyped is bool
2018-09-14 01:01:00 -04:00
Justin M. Keyes
d9fcd43638
Merge #8967 'vim-patch:8.0.1781'
2018-09-10 09:24:16 +02:00
Andrzej Pacanowski
0c80fead86
vim-patch:8.0.1781: file names in quickfix window are not shortened
...
Problem: File names in quickfix window are not always shortened.
Solution: Shorten the file name when opening the quickfix window. (Yegappan
Lakshmanan, closes vim/vim#2851 , closes vim/vim#2846 )
a796d46f29
2018-09-10 06:45:13 +02:00
Jan Edmund Lazo
3794e83d98
vim-patch:8.0.1040: cannot use another error format in getqflist()
...
Problem: Cannot use another error format in getqflist().
Solution: Add the "efm" argument to getqflist(). (Yegappan Lakshmanan)
3653822546
2018-09-08 11:52:59 -04:00
Jan Edmund Lazo
a8b996160d
lint
2018-09-08 11:31:55 -04:00
Jan Edmund Lazo
213a66441f
vim-patch:8.0.1031: "text" argument for getqflist() is confusing
...
Problem: "text" argument for getqflist() is confusing. (Lcd47)
Solution: Use "lines" instead. (Yegappan Lakshmanan)
2c809b7c7d
2018-09-08 11:31:24 -04:00
Jan Edmund Lazo
1790f81f56
vim-patch:8.0.1029: return value of getqflist() is inconsistent
...
Problem: Return value of getqflist() is inconsistent. (Lcd47)
Solution: Always return an "items" entry.
da73253a0b
2018-09-08 10:43:30 -04:00
Jan Edmund Lazo
9bf2741ba4
vim-patch:8.0.1023: it is not easy to identify a quickfix list
...
Problem: It is not easy to identify a quickfix list.
Solution: Add the "id" field. (Yegappan Lakshmanan)
a539f4f1ae
2018-09-08 08:13:48 -04:00
Jan Edmund Lazo
b4acf609ac
vim-patch:8.0.1006: quickfix list changes when parsing text with 'erroformat'
...
Problem: Cannot parse text with 'erroformat' without changing a quickfix
list.
Solution: Add the "text" argument to getqflist(). (Yegappan Lakshmanan)
7adf06f4e2
2018-09-07 22:59:12 -04:00
Jan Edmund Lazo
d99a268914
vim-patch:8.0.0922: quickfix list always added after current one
...
Problem: Quickfix list always added after current one.
Solution: Make it possible to add a quickfix list after the last one.
(Yegappan Lakshmanan)
55b6926450
2018-09-07 00:00:22 -04:00
Jan Edmund Lazo
4eb923bfe0
vim-patch:8.0.0904: cannot set a location list from text
...
Problem: Cannot set a location list from text.
Solution: Add the "text" argument to setqflist(). (Yegappan Lakshmanan)
ae33833850
2018-09-06 22:36:49 -04:00
Jan Edmund Lazo
2be853d486
lint
2018-09-06 20:26:30 -04:00
Jan Edmund Lazo
cfb2828897
window: refactor boolean variables in win_close()
...
free_buf (param) and help_window (variable) are bool.
2018-09-06 20:24:29 -04:00
Jan Edmund Lazo
dc15dcffad
vim-patch:8.0.0782: using freed memory in quickfix code
...
Problem: Using freed memory in quickfix code. (Dominique Pelle)
Solution: Handle a help window differently. (Yegappan Lakshmanan)
d28cc3f55d
2018-09-06 06:15:35 -04:00
Jan Edmund Lazo
bb519fb261
vim-patch:8.0.0733: can only add entries to one list in the quickfix stack
...
Problem: Can only add entries to one list in the quickfix stack.
Solution: Move state variables from qf_list_T to qf_list_T. (Yegappan
Lakshmanan)
a7df8c70c8
2018-09-05 23:02:14 -04:00
Jan Edmund Lazo
ee37a0c79a
vim-patch:8.0.1413: accessing freed memory in :cbuffer
...
Problem: Accessing freed memory in :cbuffer.
Solution: Get quickfix list after executing autocmds. (closes vim/vim#2470 )
aaf6e43b7a
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
eaa2cd9f7c
vim-patch:8.0.0735: no indication that the quickfix window/buffer changed
...
Problem: There is no way to notice that the quickfix window contents has
changed.
Solution: Increment b:changedtick when updating the quickfix window.
(Yegappan Lakshmanan)
a8788f4d0b
2018-07-28 23:58:34 -04:00
Jan Edmund Lazo
91b8210779
vim-patch:8.0.0687: minor issues related to quickfix
...
Problem: Minor issues related to quickfix.
Solution: Set the proper return status for all cases in setqflist() and at
test cases for this. Move the "adding" flag outside of
FEAT_WINDOWS. Minor update to the setqflist() help text. (Yegappan
Lakshmanan)
86f100dc09
2018-07-28 23:58:34 -04:00
Jan Edmund Lazo
6285b518d4
vim-patch:8.0.1622: possible NULL pointer dereference
...
Problem: Possible NULL pointer dereferencey. (Coverity)
Solution: Reverse the check for a NULL pointer.
6ed86ad170
2018-07-23 08:34:26 -04:00
Jan Edmund Lazo
bfe029a11d
vim-patch:8.0.0677: setting 'filetype' may switch buffers
...
Problem: Setting 'filetype' internally may cause the current buffer and
window to change unexpectedly.
Solution: Set curbuf_lock. (closes vim/vim#1734 )
1814183b86
2018-06-26 10:21:39 -04:00
Jan Edmund Lazo
bbb88607c9
vim-patch:8.0.0466: still macros that should be all-caps ( #8510 )
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
8820b48654
2018-06-10 12:24:00 +02:00
Justin M. Keyes
53f11dcfc7
Merge #8218 'Fix errors reported by PVS'
...
closes #4983
2018-04-27 09:25:02 +02:00
ZyX
4bab9d34e6
*: Fix clint errors
2018-04-22 20:31:40 +03:00
ZyX
190cc43cf3
quickfix: Silence PVS/V560: memory is referenced and may be changed
2018-04-22 18:59:23 +03:00
ZyX
3ee187b770
quickfix: Fix PVS/V547: allocator never returns NULL now
2018-04-22 18:57:34 +03:00
ZyX
4d43ce85f1
quickfix: Fix PVS/V547,V560: no conversion with fixed &encoding
2018-04-22 18:54:52 +03:00
ZyX
bf160dd668
quickfix: Fix PVS/V560: remove duplicate condition
...
Condition was checked in surrounding if().
2018-04-02 00:31:29 +03:00
ZyX
607e0d2202
shada: Save numbered marks
...
Problems so far:
- Marks in the current instance are not adjusted.
- Duplicates are not removed (not that it works in Vim either now, not at
8.0.134 at least).
2018-03-26 00:38:29 +03:00
Justin M. Keyes
7ae4144208
refactor/rename: path_try_shorten_fname()
2018-03-24 14:17:40 +01:00
Justin M. Keyes
6116af02ef
vim-patch:8.0.1403: using freed buffer in grep command
...
Problem: Using freed buffer in grep command. (gy741, Dominique Pelle)
Solution: Lock the dummy buffer to avoid autocommands wiping it out.
4fb921e388
2018-02-11 15:27:57 +01:00
Björn Linse
2d99b81ab5
shell: use msg_outtrans_len_attr for :!cmd
...
fixes #7830 and #7788
2018-02-05 22:57:43 +01:00
ZyX
9ea1752d60
*: Provide list length when allocating lists
2018-01-14 01:33:16 +03:00
James McCoy
d0c4bd23f7
vim-patch:8.0.0657: cannot get and set quickfix list items
...
Problem: Cannot get and set quickfix list items.
Solution: Add the "items" argument to getqflist() and setqflist(). (Yegappan
Lakshmanan)
6a8958db25
2017-12-31 01:00:59 -05:00
James McCoy
6742fd8aea
vim-patch:8.0.0634: cannot easily get to the last quickfix list
...
Problem: Cannot easily get to the last quickfix list.
Solution: Add "$" as a value for the "nr" argument of getqflist() and
setqflist(). (Yegappan Lakshmanan)
875feea6ce
2017-12-31 00:25:01 -05:00
James McCoy
caf94c72c5
lint
2017-12-30 07:56:12 -05:00
James McCoy
697fb05c58
vim-patch:8.0.0608: cannot manipulate other than the current quickfix list
...
Problem: Cannot manipulate other than the current quickfix list.
Solution: Pass the list index to quickfix functions. (Yegappan Lakshmanan)
a3921f48c6
2017-12-30 01:34:08 -05:00
ZyX
c9ab209f9e
Merge branch 'master' into hide-container-impl
2017-12-23 15:27:42 +03:00
James McCoy
190814bdae
vim-patch:8.0.0606: cannot set the context for a specified quickfix list
...
Problem: Cannot set the context for a specified quickfix list.
Solution: Use the list index instead of the current list. (Yegappan
Lakshmanan)
6e62da3e14
2017-12-19 14:07:24 -05:00
James McCoy
cdd86f42cf
vim-patch:8.0.0597: off-by-one error in size computation
...
Problem: Off-by-one error in buffer size computation.
Solution: Use ">=" instead of ">". (Lemonboy, closes vim/vim#1694 )
253f912877
2017-12-19 14:07:24 -05:00
James McCoy
6fcadab3ce
vim-patch:8.0.0595: Coverity warning for not checking return value
...
Problem: Coverity warning for not checking return value of dict_add().
Solution: Check the return value for FAIL.
beb9cb19c6
2017-12-19 14:07:24 -05:00
James McCoy
20708a07bf
vim-patch:8.0.0590: cannot add a context to locations
...
Problem: Cannot add a context to locations.
Solution: Add the "context" entry in location entries. (Yegappan Lakshmanan,
closes vim/vim#1012 )
8f77c5a4ec
2017-12-19 14:07:24 -05:00
James McCoy
4d2d844c12
vim-patch:8.0.0580: cannot set the valid flag with setqflist()
...
Problem: Cannot set the valid flag with setqflist().
Solution: Add the "valid" argument. (Yegappan Lakshmanan, closes vim/vim#1642 )
f1d21c8cc8
2017-12-18 21:44:42 -05:00
James McCoy
dd27392861
vim-patch:8.0.0574: get only one quickfix list after :caddbuf
...
Problem: Get only one quickfix list after :caddbuf.
Solution: Reset qf_multiline. (Yegappan Lakshmanan)
99895eac1c
2017-12-18 21:39:51 -05:00
James McCoy
1b2d386a85
vim-patch:8.0.0565: using freed memory in :caddbuf
...
Problem: Using freed memory in :caddbuf after clearing quickfix list.
(Dominique Pelle)
Solution: Set qf_last to NULL.
31bdd13c33
2017-12-18 21:36:44 -05:00
James McCoy
765ff94b5b
vim-patch:8.0.0584: memory leak when executing quickfix tests
...
Problem: Memory leak when executing quickfix tests.
Solution: Free the list reference. (Yegappan Lakshmanan)
d788f6fe89
2017-12-18 14:57:57 -05:00
James McCoy
f0bd2bc39a
vim-patch:8.0.0536: quickfix window not updated when freeing quickfix stack
...
Problem: Quickfix window not updated when freeing quickfix stack.
Solution: Update the quickfix window. (Yegappan Lakshmanan)
69f40be645
2017-12-18 14:56:17 -05:00
James McCoy
fb8592b7ba
vim-patch:8.0.0517: there is no way to remove quickfix lists
...
Problem: There is no way to remove quickfix lists (for testing).
Solution: Add the 'f' action to setqflist(). Add tests. (Yegappan
Lakshmanan)
b6fa30ccc3
2017-12-18 14:35:55 -05:00
James McCoy
8536348813
vim-patch:8.0.0484: :lhelpgrep does not fail after a successful one
...
Problem: Using :lhelpgrep with an argument that should fail does not
produce an error if the previous :helpgrep worked.
Solution: Use another way to detect that autocommands made the quickfix info
invalid. (Yegappan Lakshmanan)
ee85df3763
2017-12-17 21:05:20 -05:00