mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
6bbd4b2298
commit
73da9fdafd
@ -4396,6 +4396,7 @@ static HistoryType hist_char2type(const int c)
|
|||||||
case '>': {
|
case '>': {
|
||||||
return HIST_DEBUG;
|
return HIST_DEBUG;
|
||||||
}
|
}
|
||||||
|
case NUL:
|
||||||
case '/':
|
case '/':
|
||||||
case '?': {
|
case '?': {
|
||||||
return HIST_SEARCH;
|
return HIST_SEARCH;
|
||||||
|
Loading…
Reference in New Issue
Block a user