refactor: pass "preview" to regtilde()

This commit is contained in:
zeertzjq
2022-04-04 11:39:12 +08:00
parent 6486983117
commit bbfc44e255
3 changed files with 7 additions and 8 deletions

View File

@@ -1238,7 +1238,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
// string is close to useless: you can only use it with :& or :~ and
// thats all because s//~ is not available until the first call to
// regtilde. Vim was not calling this for some reason.
(void)(char *)regtilde((char_u *)cur_entry.data.sub_string.sub, p_magic);
(void)(char *)regtilde((char_u *)cur_entry.data.sub_string.sub, p_magic, false);
// Do not free shada entry: its allocated memory was saved above.
break;
case kSDItemHistoryEntry: