aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-05-20 04:29:54 +0300
committerZyX <kp-pav@yandex.ru>2017-05-20 04:29:54 +0300
commitb2265a09774dcc347278b9ad016957e77966c65d (patch)
treeef32bf179195ca87072037514952ebc7cba62880
parent8bd903cd51409ab2a6c554dfb215db0cd54fd576 (diff)
downloadrneovim-b2265a09774dcc347278b9ad016957e77966c65d.tar.gz
rneovim-b2265a09774dcc347278b9ad016957e77966c65d.tar.bz2
rneovim-b2265a09774dcc347278b9ad016957e77966c65d.zip
shada: Fix V581: adjacent branches with same condition
-rw-r--r--src/nvim/shada.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index e1879ca8c0..87b4617099 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -1277,8 +1277,6 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
if (cur_entry.data.search_pattern.is_last_used) {
set_last_used_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);
}
// Do not free shada entry: its allocated memory was saved above.