diff src/structs.h @ 31946:05414bdc5c2c v9.0.1305

patch 9.0.1305: cursor in wrong line with virtual text above Commit: https://github.com/vim/vim/commit/55a27d8ea7c112429fff14aba5db562de7f765f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 12 18:03:57 2023 +0000 patch 9.0.1305: cursor in wrong line with virtual text above Problem: Cursor in wrong line with virtual text above. Solution: Count extra line for text property above/below. (closes https://github.com/vim/vim/issues/11959)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Feb 2023 19:15:03 +0100
parents ffa11e2757e7
children ca6bc7c04163
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -4781,6 +4781,7 @@ typedef struct {
     textprop_T	*cts_text_props;	// text props (allocated)
     char	cts_has_prop_with_text; // TRUE if if a property inserts text
     int		cts_cur_text_width;     // width of current inserted text
+    int		cts_prop_lines;		// nr of properties above or below
     int		cts_first_char;		// width text props above the line
     int		cts_with_trailing;	// include size of trailing props with
 					// last character