mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
timers: make repeat=0 work one-shot (consistent with vim)
This commit is contained in:
@@ -16639,6 +16639,9 @@ static void f_timer_start(typval_T *argvars, typval_T *rettv)
|
||||
}
|
||||
if (dict_find(dict, (char_u *)"repeat", -1) != NULL) {
|
||||
repeat = get_dict_number(dict, (char_u *)"repeat");
|
||||
if (repeat == 0) {
|
||||
repeat = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user