diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-02-19 13:54:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 20:54:19 -0800 |
commit | 521b79c0f85625f99ff626935484a1225360f820 (patch) | |
tree | 56d6ad2f1cf09bd5cb1e8fff60e49d0839c43b28 /src/nvim/edit.c | |
parent | ce15977d708886a3d55fa21127abc7145dc7aaf8 (diff) | |
download | rneovim-521b79c0f85625f99ff626935484a1225360f820.tar.gz rneovim-521b79c0f85625f99ff626935484a1225360f820.tar.bz2 rneovim-521b79c0f85625f99ff626935484a1225360f820.zip |
clang/scan-build: fix dead stores #11900
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index cebd08af28..3e57bc8599 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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 |