Justin M. Keyes
fb4d5a1846
UI/ext_messages: restore kind=quickfix #10067
...
Accidentally removed in 34f9e72af9
.
ref #6201
2019-05-27 00:01:41 +02:00
Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Justin M. Keyes
66d127957e
Merge #10049 'vim-patch:8.1.0293'
2019-05-22 11:59:04 +02:00
Daniel Hahler
7905f5df99
vim-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)
4d77c65a9e
2019-05-22 04:14:35 +02:00
Jan Edmund Lazo
c82c5d7570
vim-patch:8.1.1312: Coverity warning for using uninitialized variable
...
Problem: Coverity warning for using uninitialized variable.
Solution: Clear exarg_T.
4ca41534b7
2019-05-09 23:16:17 -04:00
Jan Edmund Lazo
4423759d03
vim-patch:8.0.1144: using wrong #ifdef for computing length
...
Problem: Using wrong #ifdef for computing length.
Solution: use BACKSLASH_IN_FILENAME instead of COLON_IN_FILENAME. (Yasuhiro
Matsomoto, closes vim/vim#2153 )
0b05e491b4
2019-05-07 03:43:47 -04:00
Justin M. Keyes
c08ca29649
PVS/V547: Expression is always false
2019-05-06 10:01:49 +02:00
Justin M. Keyes
4658e9c1d9
vim-patch:8.0.1750: crash clearing location list #9968
...
Problem: Crash when clearing loccation list in autocommand.
Solution: Check if "qi" equals "ql_info". (Yegappan Lakshmanan)
3b9474b4ad
2019-05-05 23:18:47 +02:00
Marco Hinz
5f903a1648
lint
2019-05-05 14:05:26 +02:00
Marco Hinz
daa82cbf69
vim-patch:8.0.1831: sometimes the quickfix title is incorrectly prefixed with ':'
...
Problem: Sometimes the quickfix title is incorrectly prefixed with ':'.
Solution: Prepend the colon in another way. (Yegappan Lakshmanan)
8b62e31003
2019-05-05 13:46:20 +02:00
Marco Hinz
446bfdd49f
vim-patch:8.0.1805: qf_parse_line() is too long
...
Problem: qf_parse_line() is too long.
Solution: Split it in parts. Properly handle vim_realloc() failing.
(Yegappan Lakshmanan)
18cebf4417
2019-05-05 13:46:20 +02:00
Marco Hinz
e6c21c4bc0
vim-patch:8.0.1782: no simple way to label quickfix entries
...
Problem: No simple way to label quickfix entries.
Solution: Add the "module" item, to be used instead of the file name for
display purposes. (Martin Szamotulski)
d76ce85266
2019-05-05 13:46:19 +02:00
Marco Hinz
ce0e083094
vim-patch:8.0.1727: qf_get_properties() function is too long
...
Problem: qf_get_properties() function is too long.
Solution: Refactor the code. (Yegappan Lakshmanan)
353eeeaca2
2019-05-05 13:46:19 +02:00
Marco Hinz
ced3598a96
vim-patch:8.0.1678: errorformat "%r" implies "%>"
...
Problem: Errorformat "%r" implies "%>". (Jan Gosmann)
Solution: Jump to before setting fmt_ptr. (Yegappan Lakshmanan)
e333e79f9b
2019-05-05 13:46:19 +02:00
Marco Hinz
98a8187764
vim-patch:8.0.1634: the ex_vimgrep() function is too long
...
Problem: The ex_vimgrep() function is too long.
Solution: Split it in smaller functions. (Yegappan Lakshmanan)
75b0a888e4
2019-05-05 13:46:19 +02:00
Marco Hinz
f75c48146a
vim-patch:8.0.1569: warning for uninitialized variable from gcc
...
Problem: Warning for uninitialized variable from gcc.
Solution: Initialize the variable.
28ada699c1
2019-05-05 13:44:50 +02:00
Marco Hinz
624dbfdd44
vim-patch:8.0.1500: possible NULL pointer dereference
...
Problem: Possible NULL pointer dereference. (Coverity)
Solution: Check for the pointer not being NULL.
0549a1e184
2019-05-04 01:40:11 +02:00
Marco Hinz
06b70bf1d6
vim-patch:8.0.1432: after ":copen" can't get the window-ID of the quickfix window
...
Problem: After ":copen" can't get the window-ID of the quickfix window.
(FalacerSelene)
Solution: Make it work without a quickfix list. Add a test. (Yegappan
Lakshmanan)
2ec364e94d
2019-05-04 01:40:11 +02:00
Marco Hinz
dc5f4a3cc2
vim-patch:8.0.1420: accessing freed memory in vimgrep
...
Problem: Accessing freed memory in vimgrep.
Solution: Check that the quickfix list is still valid. (Yegappan Lakshmanan)
3c09722600
2019-05-04 01:40:10 +02:00
Marco Hinz
37d666bc80
vim-patch:8.0.1406: difficult to track changes to a quickfix list
...
Problem: Difficult to track changes to a quickfix list.
Solution: Add a "changedtick" value. (Yegappan Lakshmanan)
b254af312d
2019-05-04 01:40:00 +02:00
Marco Hinz
6d314484d4
vim-patch:8.0.1389: getqflist() items are missing if not set
...
Problem: getqflist() items are missing if not set, that makes it more
difficult to handle the values.
Solution: When a value is not available return zero or another invalid
value. (Yegappan Lakshmanan)
a6d4849c71
2019-05-03 23:36:51 +02:00
Marco Hinz
f3b88013a8
vim-patch:8.0.1353: QuickFixCmdPost is not used consistently
...
Problem: QuickFixCmdPost is not used consistently.
Solution: Invoke QuickFixCmdPost consistently after QuickFixCmdPre.
(Yegappan Lakshmanan)
1ed2276fd5
2019-05-03 23:36:47 +02:00
Jan Edmund Lazo
7b219c638d
vim-patch:8.0.1112: can't get size or current index from quickfix list
...
Problem: Can't get size or current index from quickfix list.
Solution: Add "idx" and "size" options. (Yegappan Lakshmanan)
fc2b270cfd
2019-04-14 20:25:42 -04:00
Jan Edmund Lazo
e52f6f21a1
vim-patch:8.0.1093: various small quickfix issues
...
Problem: Various small quickfix issues.
Solution: Remove ":" prefix from title set by a user. Add the qf_id2nr().
function. Add a couple more tests. Update documentation.
(Yegappan Lakshmanan)
b4d5fbabc9
2019-04-14 19:09:19 -04:00
Jan Edmund Lazo
6de1ed1ff1
vim-patch:8.0.0776: function prototypes missing without the quickfix feature
...
Problem: Function prototypes missing without the quickfix feature. (Tony
Mechelynck)
Solution: Move non-quickfix functions to buffer.c.
f0a521f4f7
2019-04-14 19:09:19 -04:00
Jan Edmund Lazo
8f2175e7d0
vim-patch:8.0.0761: options not set properly for a terminal buffer
...
Problem: Options of a buffer for a terminal window are not set properly.
Solution: Add "terminal" value for 'buftype'. Make 'buftype' and
'bufhidden' not depend on the quickfix feature.
Also set the buffer name and show "running" or "finished" in the
window title.
1f2903c431
2019-04-14 19:09:19 -04:00
Marco Hinz
34f9e72af9
vim-patch:8.0.1130: the qf_jump() function is still too long
...
Problem: The qf_jump() function is still too long.
Solution: Split of parts to separate functions. (Yegappan Lakshmanan)
9cb03716c9
2019-04-13 21:25:40 +02:00
Marco Hinz
ace826e685
vim-patch:8.0.1104: the qf_jump() function is too long
...
Problem: The qf_jump() function is too long.
Solution: Split of parts to separate functions. (Yegappan Lakshmanan)
ef6b8de42f
2019-04-13 21:25:40 +02:00
Billy Su
241b905b13
vim-patch:8.0.0643: when a pattern search is slow Vim becomes unusable
...
Problem: When 'hlsearch' is set and matching with the last search pattern
is very slow, Vim becomes unusable. Cannot quit search by
pressing CTRL-C.
Solution: When the search times out set a flag and don't try again. Check
for timeout and CTRL-C in NFA loop that adds states.
fbd0b0af68
2019-03-07 23:27:19 +08:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-02-10 13:36:46 +01:00
Björn Linse
27b7813025
cleanup: reduce some duplicate code, avoid function pointers for a condition
...
Add 'multiline' flag to history for correct :messages output
Use larger buffer size for multiline messages. if this turns out to not
be enough, we could do size calculation like api_set_error
2019-01-23 19:34:13 +01:00
Justin M. Keyes
a70fde1b45
build: enable -Wshadow
...
Note about shada.c:
- shada_read_next_item_start was intentionally shadowing `unpacked` and
`i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly
depended on those variable names.
- Macros were changed to parameterize `unpacked` (but not `i`). Macros
like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other
approach is messy.
2019-01-02 21:06:37 +01:00
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