mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
startup: Initialize v:count1 (#5656)
The man plugin uses `v:count == v:count1` to detect if a count was explicitly given. Unfortunately v:count1 does _not_ default to 1 but 0 during startup. Now we set v:count1 to 1 early. Fixes https://github.com/neovim/neovim/issues/5655
This commit is contained in:
parent
9956beee24
commit
39bb43c530
@ -562,6 +562,7 @@ void eval_init(void)
|
||||
set_vim_var_list(VV_ERRORS, list_alloc());
|
||||
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
|
||||
set_vim_var_nr(VV_HLSEARCH, 1L);
|
||||
set_vim_var_nr(VV_COUNT1, 1);
|
||||
|
||||
set_vim_var_special(VV_FALSE, kSpecialVarFalse);
|
||||
set_vim_var_special(VV_TRUE, kSpecialVarTrue);
|
||||
|
Loading…
Reference in New Issue
Block a user