Mercurial > vim
comparison src/ex_getln.c @ 13600:75e35ebdb7a4 v8.0.1672
patch 8.0.1672: error during completion causes command to be cancelled
commit https://github.com/vim/vim/commit/72532d354e699f1cceec34c0b08e1de4d3ea9641
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 7 19:09:09 2018 +0200
patch 8.0.1672: error during completion causes command to be cancelled
Problem: Error during completion causes command to be cancelled.
Solution: Reset did_emsg before waiting for another character. (Tom M.)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 07 Apr 2018 19:15:05 +0200 |
parents | 1fd0f8392946 |
children | dd6a63e3e7c4 |
comparison
equal
deleted
inserted
replaced
13599:1212b1877959 | 13600:75e35ebdb7a4 |
---|---|
423 completion may switch it on. */ | 423 completion may switch it on. */ |
424 #ifdef USE_ON_FLY_SCROLL | 424 #ifdef USE_ON_FLY_SCROLL |
425 dont_scroll = FALSE; /* allow scrolling here */ | 425 dont_scroll = FALSE; /* allow scrolling here */ |
426 #endif | 426 #endif |
427 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ | 427 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ |
428 | |
429 did_emsg = FALSE; /* There can't really be a reason why an error | |
430 that occurs while typing a command should | |
431 cause the command not to be executed. */ | |
428 | 432 |
429 cursorcmd(); /* set the cursor on the right spot */ | 433 cursorcmd(); /* set the cursor on the right spot */ |
430 | 434 |
431 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do | 435 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do |
432 * anything, such as stop completion. */ | 436 * anything, such as stop completion. */ |