clang/scan-build: fix dead stores #11900

This commit is contained in:
Hirokazu Hata
2020-02-19 13:54:19 +09:00
committed by GitHub
parent ce15977d70
commit 521b79c0f8
2 changed files with 2 additions and 5 deletions

View File

@@ -574,10 +574,8 @@ static int insert_check(VimState *state)
foldCheckClose();
}
int cmdchar_todo = s->cmdchar;
if (bt_prompt(curbuf)) {
init_prompt(cmdchar_todo);
cmdchar_todo = NUL;
init_prompt(s->cmdchar);
}
// If we inserted a character at the last position of the last line in the