summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-12 15:47:25 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-12 15:47:25 +0100
commit8667a5678f983ba899825b810ab849952d49bcb8 (patch)
treed231ffff7abc79c7bdb26a078ae05edcfbccd44d /src/edit.c
parent378447fc183b589039a5bf257923a86d439b0a91 (diff)
patch 9.0.1545: text not scrolled when cursor moved with "g0" and "h"v9.0.1545
Problem: Text not scrolled when cursor moved with "g0" and "h". Solution: Adjust w_skipcol when needed. (Luuk van Baal, closes #12387)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index c23b0a8556..64edddce8d 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2734,6 +2734,7 @@ oneleft(void)
}
curwin->w_set_curswant = TRUE;
+ adjust_skipcol();
return OK;
}