-*todo.txt* For Vim version 9.2. Last change: 2026 Jul 31
+*todo.txt* For Vim version 9.2. Last change: 2026 Aug 01
VIM REFERENCE MANUAL by Bram Moolenaar
#12232)
- truncated Virtual text below an empty line causes display error #12493
-When 'virtualedit' is "all" and 'cursorcolumn' is set, the wrong column may be
-highlighted. (van-de-bugger, 2018 Jan 23, #2576)
-
Errors when running tests with valgrind:
- test_codestyle.vim: e.g.:
command line..script /home/mool/vim/vim91/src/testdir/runtest.vim[569]..function RunTheTest[52]..Test_test_files line 6: keycode_check.vim: space before tab: Expected 0 but got 7
}
#endif
+#ifdef FEAT_SYN_HL
+ // 'cursorcolumn' is drawn with w_virtcol, make sure it is up to date.
+ // This may set w_redr_type, thus do it before using it below.
+ if (wp->w_p_cuc)
+ validate_virtcol_win(wp);
+#endif
+
type = wp->w_redr_type;
if (type == UPD_NOT_VALID)
--- /dev/null
+| +0&#e0e0e08| +0&#ffffff0@73
+| +0&#e0e0e08| +0&#ffffff0@73
+> @74
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|~| @73
+| +0#0000000&@56|3|,|0|-|1| @8|A|l@1|
call StopVimInTerminal(buf)
endfunc
+" The column highlighted with 'cursorcolumn' must be the column of the cursor,
+" also after a command that moved the cursor into virtual space and back.
+func Test_cursorcolumn_virtualedit()
+ CheckScreendump
+
+ let lines =<< trim END
+ set virtualedit=all
+ set cursorcolumn
+ call setline(1, ['', '', ''])
+ call cursor(3, 1)
+ END
+ call writefile(lines, 'Xcuc_virtualedit', 'D')
+
+ let buf = RunVimInTerminal('-S Xcuc_virtualedit', #{rows: 8})
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_cursorcolumn_virtualedit_1', {})
+
+ call term_sendkeys(buf, "\<Del>")
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_cursorcolumn_virtualedit_1', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_cursorcolumn_callback()
CheckScreendump
CheckFeature timers
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 892,
/**/
891,
/**/