Mercurial > vim
comparison src/edit.c @ 15629:dd2e0b83a660
patch 8.1.0822: peeking and flushing output slows down execution
commit https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 25 22:29:57 2019 +0100
patch 8.1.0822: peeking and flushing output slows down execution
Problem: Peeking and flushing output slows down execution.
Solution: Do not update the mode message when global_busy is set. Do not
flush when only peeking for a character. (Ken Takata)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Jan 2019 22:30:13 +0100 |
parents | 1ec942f1b648 |
children | 6f1c7e9a6393 |
comparison
equal
deleted
inserted
replaced
15628:9349b4bef75f | 15629:dd2e0b83a660 |
---|---|
8720 * When recording or for CTRL-O, need to display the new mode. | 8720 * When recording or for CTRL-O, need to display the new mode. |
8721 * Otherwise remove the mode message. | 8721 * Otherwise remove the mode message. |
8722 */ | 8722 */ |
8723 if (reg_recording != 0 || restart_edit != NUL) | 8723 if (reg_recording != 0 || restart_edit != NUL) |
8724 showmode(); | 8724 showmode(); |
8725 else if (p_smd) | 8725 else if (p_smd && !skip_showmode()) |
8726 msg(""); | 8726 msg(""); |
8727 | 8727 |
8728 return TRUE; /* exit Insert mode */ | 8728 return TRUE; /* exit Insert mode */ |
8729 } | 8729 } |
8730 | 8730 |