comparison src/edit.c @ 29579:f7a64755dbe9 v9.0.0130

patch 9.0.0130: cursor position wrong when inserting around virtual text Commit: https://github.com/vim/vim/commit/1f4ee19eefecd8f70b7cbe8ee9db8ace6352e23e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 1 15:52:55 2022 +0100 patch 9.0.0130: cursor position wrong when inserting around virtual text Problem: Cursor position wrong when inserting around virtual text. Solution: Update the cursor position properly.
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Aug 2022 17:00:04 +0200
parents 99e3763cbd34
children 89e1d67814a9
comparison
equal deleted inserted replaced
29578:e64e9ba15acc 29579:f7a64755dbe9
286 // Check if the cursor line needs redrawing after changing State. If 286 // Check if the cursor line needs redrawing after changing State. If
287 // 'concealcursor' is "n" it needs to be redrawn without concealing. 287 // 'concealcursor' is "n" it needs to be redrawn without concealing.
288 conceal_check_cursor_line(cursor_line_was_concealed); 288 conceal_check_cursor_line(cursor_line_was_concealed);
289 #endif 289 #endif
290 290
291 // need to position cursor again when on a TAB 291 // Need to position cursor again when on a TAB and when on a char with
292 if (gchar_cursor() == TAB) 292 // virtual text.
293 if (gchar_cursor() == TAB
294 #ifdef FEAT_PROP_POPUP
295 || curbuf->b_has_textprop
296 #endif
297 )
293 curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL); 298 curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
294 299
295 /* 300 /*
296 * Enable langmap or IME, indicated by 'iminsert'. 301 * Enable langmap or IME, indicated by 'iminsert'.
297 * Note that IME may enabled/disabled without us noticing here, thus the 302 * Note that IME may enabled/disabled without us noticing here, thus the