diff src/textobject.c @ 32460:45c426cebfcd v9.0.1561

patch 9.0.1561: display wrong when moving cursor to above the top line Commit: https://github.com/vim/vim/commit/798fa76dbf737f855e47b10bf326453866b429ab Author: Luuk van Baal <luukvbaal@gmail.com> Date: Mon May 15 18:17:43 2023 +0100 patch 9.0.1561: display wrong when moving cursor to above the top line Problem: Display wrong when moving cursor to above the top line and 'smoothscroll' is set. Solution: Call adjust_skipcol() in more places and make it work better. (Luuk van Baal, closes #12395)
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 May 2023 19:30:05 +0200
parents bc6cf208b1b4
children 448aef880252
line wrap: on
line diff
--- a/src/textobject.c
+++ b/src/textobject.c
@@ -472,6 +472,7 @@ bck_word(long count, int bigword, int st
 finished:
 	stop = FALSE;
     }
+    adjust_skipcol();
     return OK;
 }
 
@@ -598,6 +599,7 @@ bckend_word(
 		return OK;
 	}
     }
+    adjust_skipcol();
     return OK;
 }