diff src/sign.c @ 17105:811c5c2f5236 v8.1.1552

patch 8.1.1552: cursor position is wrong after sign column changes commit https://github.com/vim/vim/commit/f85e40afc204c241c6a01023be3e7b8101d36367 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 13:55:40 2019 +0200 patch 8.1.1552: cursor position is wrong after sign column changes Problem: Cursor position is wrong after sign column appears or disappears. (Yegappan Lakshmanan) Solution: Call changed_line_abv_curs() instead of changed_cline_bef_curs().
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 14:00:07 +0200
parents 15bc5a64bd50
children 210c4c5f783d
line wrap: on
line diff
--- a/src/sign.c
+++ b/src/sign.c
@@ -231,7 +231,7 @@ insert_sign(
 	    if (buf->b_signlist == NULL)
 	    {
 		redraw_buf_later(buf, NOT_VALID);
-		changed_cline_bef_curs();
+		changed_line_abv_curs();
 	    }
 
 	    // first sign in signlist
@@ -531,7 +531,7 @@ buf_delsign(
     if (buf->b_signlist == NULL)
     {
 	redraw_buf_later(buf, NOT_VALID);
-	changed_cline_bef_curs();
+	changed_line_abv_curs();
     }
 
     return lnum;
@@ -651,7 +651,7 @@ buf_delete_signs(buf_T *buf, char_u *gro
     if (buf->b_signlist != NULL && curwin != NULL)
     {
 	redraw_buf_later(buf, NOT_VALID);
-	changed_cline_bef_curs();
+	changed_line_abv_curs();
     }
 
     lastp = &buf->b_signlist;