Mercurial > vim
comparison src/charset.c @ 29568:8f71840ecf07 v9.0.0125
patch 9.0.0125: cursor positioned wrong with virtual text after the line
Commit: https://github.com/vim/vim/commit/84b247fab70e9b76539c2a0e24556e7c66126974
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 1 11:17:40 2022 +0100
patch 9.0.0125: cursor positioned wrong with virtual text after the line
Problem: Cursor positioned wrong with virtual text after the line.
Solution: Clear cts_with_trailing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Aug 2022 12:30:05 +0200 |
parents | 7234ae4e0158 |
children | 24f01baa27b2 |
comparison
equal
deleted
inserted
replaced
29567:85f3cea1b0b9 | 29568:8f71840ecf07 |
---|---|
919 cts->cts_ptr = ptr; | 919 cts->cts_ptr = ptr; |
920 #ifdef FEAT_PROP_POPUP | 920 #ifdef FEAT_PROP_POPUP |
921 cts->cts_text_prop_count = 0; | 921 cts->cts_text_prop_count = 0; |
922 cts->cts_has_prop_with_text = FALSE; | 922 cts->cts_has_prop_with_text = FALSE; |
923 cts->cts_cur_text_width = 0; | 923 cts->cts_cur_text_width = 0; |
924 cts->cts_with_trailing = 0; | |
924 if (lnum > 0) | 925 if (lnum > 0) |
925 { | 926 { |
926 char_u *prop_start; | 927 char_u *prop_start; |
927 | 928 |
928 cts->cts_text_prop_count = get_text_props(wp->w_buffer, lnum, | 929 cts->cts_text_prop_count = get_text_props(wp->w_buffer, lnum, |