comparison src/ops.c @ 19665:b64343cbabc6 v8.2.0389

patch 8.2.0389: delayed redraw when shifting text from Insert mode Commit: https://github.com/vim/vim/commit/e4fc746d13f5b6a0b5c3a8efdff7de1454c3297d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 15 19:17:50 2020 +0100 patch 8.2.0389: delayed redraw when shifting text from Insert mode Problem: Delayed redraw when shifting text from Insert mode. Solution: Use msg_attr_keep() instead of msg(). (closes https://github.com/vim/vim/issues/5782)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Mar 2020 19:30:04 +0100
parents 2bb0e80fcd32
children 9daed26b788b
comparison
equal deleted inserted replaced
19664:ffe105b08a03 19665:b64343cbabc6
201 msg_line_plural = NGETTEXT("%ld lines %sed %d time", 201 msg_line_plural = NGETTEXT("%ld lines %sed %d time",
202 "%ld lines %sed %d times", amount); 202 "%ld lines %sed %d times", amount);
203 vim_snprintf((char *)IObuff, IOSIZE, 203 vim_snprintf((char *)IObuff, IOSIZE,
204 NGETTEXT(msg_line_single, msg_line_plural, oap->line_count), 204 NGETTEXT(msg_line_single, msg_line_plural, oap->line_count),
205 oap->line_count, op, amount); 205 oap->line_count, op, amount);
206 msg((char *)IObuff); 206 msg_attr_keep((char *)IObuff, 0, TRUE);
207 } 207 }
208 208
209 if (!cmdmod.lockmarks) 209 if (!cmdmod.lockmarks)
210 { 210 {
211 // Set "'[" and "']" marks. 211 // Set "'[" and "']" marks.