mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
hist_char2type: Return '/' for NUL.
During -S execution, ccline.cmdfirstc is NULL, so calling histadd() with a hist-name of '' would fail. Mimic Vim's behavior and fallback to '/' in this scenario, since '' is a documented hist-name as of vim/vim@3e496b0e.
This commit is contained in:
@@ -4396,6 +4396,7 @@ static HistoryType hist_char2type(const int c)
|
||||
case '>': {
|
||||
return HIST_DEBUG;
|
||||
}
|
||||
case NUL:
|
||||
case '/':
|
||||
case '?': {
|
||||
return HIST_SEARCH;
|
||||
|
Reference in New Issue
Block a user