Justin M. Keyes
2731080212
cleanup: remove mch_fopen in favor of os_fopen
2019-07-25 22:32:23 +02:00
Björn Linse
aa28e070e9
refactor: use int for Columns and Rows
2019-07-19 15:57:19 +02:00
Jan Edmund Lazo
3a49fa8f8b
vim-patch:8.1.0169: calling message_filtered() a bit too often
...
Problem: Calling message_filtered() a bit too often.
Solution: Only call message_filtered() when filtering is already false.
a9defadb8f
2019-06-23 18:17:09 -04:00
Jan Edmund Lazo
98801ec7ae
vim-patch:8.1.0166: using dict_add_nr_str() is clumsy
...
Problem: Using dict_add_nr_str() is clumsy.
Solution: Split into two functions. (Ozaki Kiichi, closes vim/vim#3154 )
e0be167a80
2019-06-23 18:17:09 -04:00
Jan Edmund Lazo
ff244a1309
vim-patch:8.1.0165: :clist output can be very long
...
Problem: :clist output can be very long.
Solution: Support filtering :clist entries. (Yegappan Lakshmanan)
4cde86c2ef
2019-06-23 18:17:09 -04:00
Jan Edmund Lazo
5c2feb690e
vim-patch:8.1.0074: crash when running quickfix tests
...
Problem: Crash when running quickfix tests.
Solution: Do not alloc a new location list when checking for the reference
to be still valid.
d6b01a2d38
2019-06-19 01:36:00 -04:00
Jan Edmund Lazo
a6707f5791
vim-patch:8.1.0073: crash when autocommands call setloclist()
...
Problem: Crash when autocommands call setloclist(). (Dominique Pelle)
Solution: If the quickfix list changes then don't jump to the error.
0366c0161e
2019-06-19 01:36:00 -04:00
Jan Edmund Lazo
18b031ea1d
vim-patch:8.0.0953: get "no write since last change" error in terminal window
...
Problem: Get "no write since last change" error in terminal window.
Solution: Use another message when closing a terminal window. Make ":quit!"
also end the job.
f5be7cd016
2019-06-13 22:40:12 -04:00
Jan Edmund Lazo
22d58ab664
vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window
...
Problem: CTRL-W CR does not work properly in a quickfix window.
Solution: Split the window if needed. (Jason Franklin)
0a08c63da1
2019-06-12 00:22:16 -04:00
Jan Edmund Lazo
e653f39f4f
vim-patch:8.0.1702: leaking memory when autocommands make quickfix list invalid
...
Problem: Leaking memory when autocommands make a quickfix list invalid.
Solution: Call FreeWild(). (Yegappan Lakshmanan)
ee5b94a8ec
2019-06-06 22:43:48 -04:00
Jan Edmund Lazo
bb4e0deaf9
vim-patch:8.1.0060: crash when autocommands delete the current buffer
...
Problem: Crash when autocommands delete the current buffer. (Dominique
Pelle)
Solution: Check that autocommands don't change the buffer.
600323b4ef
2019-06-06 22:43:48 -04:00
Jan Edmund Lazo
fb2b0fa5ba
vim-patch:8.0.1669: :vimgrep may add entries to the wrong quickfix list
...
Problem: :vimgrep may add entries to the wrong quickfix list.
Solution: Use the list identifier. (Yegappan Lakshmanan)
e1bb879f49
2019-06-06 22:43:47 -04:00
Jan Edmund Lazo
0234d579a7
vim-patch:8.0.1414: accessing freed memory in :lfile.
...
Problem: Accessing freed memory in :lfile.
Solution: Get the current window after executing autocommands. (Yegappan
Lakshmanan, closes vim/vim#2473 )
14a4deb064
2019-06-06 22:43:47 -04:00
Jan Edmund Lazo
427140048b
vim-patch:8.0.1412: using free memory using setloclist()
...
Problem: Using free memory using setloclist(). (Dominique Pelle)
Solution: Mark location list context as still in use when needed. (Yegappan
Lakshmanan, closes vim/vim#2462 )
1223744849
2019-06-06 22:43:47 -04:00
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