mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
shada: Fix V581: adjacent branches with same condition
This commit is contained in:
@@ -1277,8 +1277,6 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
|
|||||||
if (cur_entry.data.search_pattern.is_last_used) {
|
if (cur_entry.data.search_pattern.is_last_used) {
|
||||||
set_last_used_pattern(
|
set_last_used_pattern(
|
||||||
cur_entry.data.search_pattern.is_substitute_pattern);
|
cur_entry.data.search_pattern.is_substitute_pattern);
|
||||||
}
|
|
||||||
if (cur_entry.data.search_pattern.is_last_used) {
|
|
||||||
SET_NO_HLSEARCH(!cur_entry.data.search_pattern.highlighted);
|
SET_NO_HLSEARCH(!cur_entry.data.search_pattern.highlighted);
|
||||||
}
|
}
|
||||||
// Do not free shada entry: its allocated memory was saved above.
|
// Do not free shada entry: its allocated memory was saved above.
|
||||||
|
Reference in New Issue
Block a user