From 58437e0409e35852c32f8633bdc0a3daa01e001d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar <Bram@vim.org> Date: Wed, 22 Feb 2012 17:58:04 +0100 Subject: [PATCH] updated for version 7.3.453 Problem: Pasting in the command line is slow. Solution: Don't redraw if there is another character to read. (Dominique Pelle) --- src/ex_getln.c | 7 +++++-- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ex_getln.c b/src/ex_getln.c index 1f5c873dac..f811889d31 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1852,8 +1852,11 @@ cmdline_changed: # endif ) /* Always redraw the whole command line to fix shaping and - * right-left typing. Not efficient, but it works. */ - redrawcmd(); + * right-left typing. Not efficient, but it works. + * Do it only when there are no characters left to read + * to avoid useless intermediate redraws. */ + if (vpeekc() == NUL) + redrawcmd(); #endif } diff --git a/src/version.c b/src/version.c index 0b6c063b38..c3d3555ab3 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 453, /**/ 452, /**/ -- GitLab