comparison src/drawline.c @ 34576:563b0a3bd697 v9.1.0186

patch 9.1.0186: cursor pos wrong on mouse click after eol with 'rl', 've' and conceal Commit: https://github.com/vim/vim/commit/deb2204bffa075ed5485415fc2dbd20e75d87ea4 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Mar 17 19:44:30 2024 +0100 patch 9.1.0186: cursor pos wrong on mouse click after eol with 'rl', 've' and conceal Problem: Wrong cursor position when clicking after end of line with 'rightleft', 'virtualedit' and conceal. Solution: Set values in ScreenCols[] also with SLF_RIGHTLEFT. Also fix off-by-one cursor position with 'colorcolumn' (zeertzjq). closes: #14218 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Mar 2024 20:00:02 +0100
parents 74baeec0f24f
children cb36b351c2de
comparison
equal deleted inserted replaced
34575:632aa96ea9c9 34576:563b0a3bd697
973 # endif 973 # endif
974 { 974 {
975 ++wlv->off; 975 ++wlv->off;
976 ++wlv->col; 976 ++wlv->col;
977 } 977 }
978 978 ++wlv->vcol;
979 if (VCOL_HLC >= rightmost_vcol 979
980 if (VCOL_HLC > rightmost_vcol
980 # ifdef LINE_ATTR 981 # ifdef LINE_ATTR
981 && wlv->line_attr == 0 982 && wlv->line_attr == 0
982 # endif 983 # endif
983 && wlv->win_attr == 0) 984 && wlv->win_attr == 0)
984 break; 985 break;
985
986 ++wlv->vcol;
987 } 986 }
988 } 987 }
989 #endif 988 #endif
990 989
991 // Set increasing virtual columns in ScreenCols[] to set correct curswant 990 // Set increasing virtual columns in ScreenCols[] to set correct curswant