Justin M. Keyes
998a16c926
refactor/rename: path_is_absolute()
2018-03-24 14:17:40 +01:00
Björn Linse
d407a48665
getchar: implement <Cmd> key to invoke command in any mode
2018-03-23 14:01:49 +01:00
Björn Linse
d9497053e8
ex_getln: clear cmdline_block after it's freed
2018-02-14 19:20:28 +01:00
Justin M. Keyes
f26a4d484b
lint
2018-02-11 19:03:29 +01:00
Justin M. Keyes
cebf31cf70
vim-patch:8.0.1210: CTRL-G and CTRL-T are ignored with typeahead
...
Problem: When typing a search pattern CTRL-G and CTRL-T are ignored when
there is typeahead.
Solution: Don't pass SEARCH_PEEK and don't call char_avail(). (haya14busa,
closes vim/vim#2233 )
f8e8c0643b
2018-02-11 15:29:19 +01:00
Justin M. Keyes
7d12597d29
vim-patch:8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong direction
...
Problem: Using CTRL-G with 'incsearch' and ? goes in the wrong direction.
(Ramel Eshed)
Solution: Adjust search_start. (Christian Brabandt)
da5116da45
2018-02-11 15:27:56 +01:00
Justin M. Keyes
ca24ad0b95
vim-patch:8.0.0689: ~ character not escaped when extending search pattern
...
Problem: The ~ character is not escaped when adding to the search pattern
with CTRL-L. (Ramel Eshed)
Solution: Escape the character. (Christian Brabandt)
a693d0584b
2018-02-11 15:27:55 +01:00
Björn Linse
5d8da126d0
ui/tui: highlighting refactor
...
Make HlAttr contain highlighting state for both color modes (cterm and rgb).
This allows us to implement termguicolors completely in the TUI.
Simplify some logic duplicated between ui.c and screen.c. Also avoid
some superfluous highlighting reset events.
2018-02-11 10:29:32 +01:00
Justin M. Keyes
709a87d194
Merge #7463 'incsearch + hlsearch highlight all'
2018-02-01 23:25:55 +01:00
Jakub Łuczyński
9a36337d32
vim-patch:8.0.0528: highlight wrong text when 'wim' includes "longest" ( #7927 )
...
Problem: When 'wildmenu' is set and 'wildmode' has "longest" then the first
file name is highlighted, even though the text shows the longest
match.
Solution: Do not highlight the first match. (LemonBoy, closes vim/vim#1602 )
ef8eb08978
2018-01-29 02:01:16 +01:00
Ömer Sinan Ağacan
87e03c2b85
vim-patch:8.0.1393: too much highlighting with 'hlsearch' and 'incsearch' set
...
Problem: Too much highlighting with 'hlsearch' and 'incsearch' set.
Solution: Do not highlight matches when the pattern matches everything.
6621605eb9
2018-01-26 18:39:20 +03:00
Ömer Sinan Ağacan
9bc1410ee1
vim-patch:8.0.1304: CTRL-G/CTRL-T don't work with incsearch and empty pattern
...
Problem: CTRL-G/CTRL-T don't work with incsearch and empty pattern.
Solution: Use the last search pattern. (Christian Brabandt, closes vim/vim#2292 )
d048009717
2018-01-26 18:39:20 +03:00
Ömer Sinan Ağacan
cd59577d57
vim-patch:8.0.1396: memory leak when CTRL-G in search command line fails
...
Problem: Memory leak when CTRL-G in search command line fails.
Solution: Move restore_last_search_pattern to after "if".
a1d5c154db
2018-01-26 18:39:20 +03:00
Ömer Sinan Ağacan
cd973be11b
vim-patch:8.0.1250
...
Problem: 'hlsearch' highlighting not removed after incsearch (lacygoill)
Solution: Redraw all windows. Start search at the end of the match. Improve
how CTRL-G works with incremental search. Add tests. (Christian
Brabandt, Hirohito Higashi, haya14busa, closes vim/vim#2267 )
f8f8b2eadb
2018-01-26 18:39:20 +03:00
Ömer Sinan Ağacan
41394d8236
vim-patch:8.0.1238
...
Problem: Incremental search only shows one match.
Solution: When 'incsearch' and and 'hlsearch' are both set highlight all
matches. (haya14busa, closes vim/vim#2198 )
2e51d9a097
2018-01-26 18:39:20 +03:00
Justin M. Keyes
0daaa49586
Merge #7863 'mingw64: fix gcc warnings'
2018-01-20 17:18:32 +01:00
Marco Hinz
6acbd76b00
Add completion for :checkhealth
2018-01-18 22:47:36 +01:00
George Zhao
06994e0e21
Fix warning about conversion on mingw64
2018-01-18 21:30:03 +08:00
KunMing Xie
26251d6d06
vim-patch:8.0.0374: invalid memory access when using :sc in Ex mode ( #7849 )
...
Problem: Invalid memory access when using :sc in Ex mode. (Dominique Pelle)
Solution: Avoid the column being negative. Also fix a hang in Ex mode.
ba748c8a84
2018-01-15 23:54:56 +01:00
ZyX
ceb45a0885
*: Fix test failures
2017-12-11 01:43:36 +03:00
ZyX
ac4bbf55f6
*: Hide list implementation in other files as well
2017-12-10 22:04:43 +03:00
Justin M. Keyes
3cc7ebf810
Merge #7234 'built-in expression parser'
2017-12-09 18:47:34 +01:00
Björn Linse
ba7d6a9e6b
ui: fix glitch with both ext_cmdline and cmd_wildmenu
2017-12-06 09:41:51 +01:00
ZyX
b9c7813058
Merge branch 'master' into expression-parser
2017-11-26 15:54:03 +03:00
Björn Linse
a4f6cec7a3
cmdline: CmdlineEnter and CmdlineLeave autocommands ( #7422 )
...
vim-patch:fafcf0dd59fd
patch 8.0.1206: no autocmd for entering or leaving the command line
Problem: No autocmd for entering or leaving the command line.
Solution: Add CmdlineEnter and CmdlineLeave.
fafcf0dd59
2017-11-22 22:35:20 +01:00
ZyX
03a129aacf
Merge branch 'master' into expression-parser
2017-11-19 22:05:22 +03:00
ZyX
731dc82f8c
ex_getln: Fix memory leak in color_expr_cmdline
2017-11-19 21:21:45 +03:00
KunMing Xie
a2fdd0a72f
vim-patch:8.0.0237 ( #7531 )
...
Problem: When setting wildoptions=tagfile the completion context is not set
correctly. (desjardins)
Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes vim/vim#1399 )
ba47b51ff8
2017-11-11 01:26:55 +01:00
Björn Linse
06fd32b8ff
ui: remove ext_cmdline noise ( #7486 )
...
Only send cmdline contents once per ui_flush.
Don't send extra redraws due to 'arshape', it makes no difference to
external ui.
2017-11-07 18:53:42 +01:00
ZyX
24a353364d
Merge branch 'master' into expression-parser
2017-11-06 20:23:35 +03:00
ZyX
f2660bee6a
*: Fix some typos found by oni-link
2017-11-06 20:20:31 +03:00
Justin M. Keyes
b67f58b284
Merge #7454 'ui: ext_wildmenu'
...
closes #6168
ref #5686
2017-10-31 10:45:06 +01:00
Justin M. Keyes
241fe704a5
pvs/V575: false positive ( #7462 )
...
./src/nvim/ex_getln.c:2787:1: error: V575 The 'memcpy' function doesn't
copy the whole string. Use 'strcpy / strcpy_s' function to preserve
terminal null.
We could instead "trick" PVS like this:
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index e79476ab532a..295630693b27 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2782,9 +2782,10 @@ static void ui_ext_cmdline_show(CmdlineInfo *line)
void ui_ext_cmdline_block_append(int indent, const char *line)
{
- char *buf = xmallocz(indent + strlen(line));
+ size_t linelen = strlen(line);
+ char *buf = xmallocz(indent + linelen);
memset(buf, ' ', indent);
- memcpy(buf+indent, line, strlen(line));
+ memcpy(buf + indent, line, linelen);
Array item = ARRAY_DICT_INIT;
ADD(item, DICTIONARY_OBJ((Dictionary)ARRAY_DICT_INIT));
2017-10-30 23:29:47 +01:00
ZyX
0356dbbb36
ex_getln: Fix variable name which is wrong after the merge
2017-10-30 01:38:02 +03:00
ZyX
b29a776550
Merge branch 'master' into expression-parser
2017-10-30 00:49:12 +03:00
ZyX
b935a12dab
ex_getln: Make use of new parser to color expressions
...
Retires g:Nvim_color_expr callback.
2017-10-29 16:32:13 +03:00
Dongdong Zhou
39e83fa7cb
ui: allow external ui to draw wildmenu
...
Co-authored-by: Björn Linse <bjorn.linse@gmail.com >
Updated docs and tests.
2017-10-29 08:18:03 +01:00
Björn Linse
445f25998c
ext_cmdline: fix inputsecret()
2017-10-26 20:29:10 +02:00
Björn Linse
91d8e26bc7
ext_cmdline: interact with cmdline window
2017-10-26 20:29:10 +02:00
Björn Linse
bed0a3a842
ext_cmdline: implement redraw!
2017-10-26 20:29:08 +02:00
Björn Linse
2050e66046
ext_cmdline: turn nested cmdlines into a linked list
2017-10-26 20:28:49 +02:00
Björn Linse
f2aaa4ae8b
ext_cmdline: rename cmdline_char to cmdline_special_char
2017-10-26 20:28:49 +02:00
Björn Linse
a68817f565
ext_cmdline: extend "function" to generic "block" mechanism
2017-10-26 20:28:49 +02:00
Björn Linse
ddfc077da4
ext_cmdline: disable some redraws
2017-10-26 20:28:49 +02:00
Björn Linse
22402fb99d
ext_cmdline: add support for highlighting
2017-10-26 20:28:47 +02:00
Dongdong Zhou
5ad591ef2d
ext_cmdline: lint
2017-10-26 09:35:13 +02:00
Dongdong Zhou
fb389a6b4b
ext_cmdline: added indent
2017-10-26 09:35:13 +02:00
Dongdong Zhou
866dadaf75
ext_cmdline: added cmdline level
...
add cchar_to_string
2017-10-26 09:35:13 +02:00
Dongdong Zhou
ab85999eb7
ext_cmdline: change to use ui_call
2017-10-26 09:35:13 +02:00
Dongdong Zhou
e164ba41c8
ext_cmdline: fix firstc, change cmdline_leave to cmdline_hide
2017-10-26 09:35:13 +02:00