aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 4a7f8c3c2..c4f3b9660 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3717,6 +3717,7 @@ static void do_cmd(int c)
3717# endif 3717# endif
3718 } while (--cmdcnt > 0); 3718 } while (--cmdcnt > 0);
3719 dot += cnt; 3719 dot += cnt;
3720 dot_skip_over_ws();
3720# if ENABLE_FEATURE_VI_YANKMARK && ENABLE_FEATURE_VI_VERBOSE_STATUS 3721# if ENABLE_FEATURE_VI_YANKMARK && ENABLE_FEATURE_VI_VERBOSE_STATUS
3721 yank_status("Put", p, i); 3722 yank_status("Put", p, i);
3722# endif 3723# endif
@@ -4172,6 +4173,9 @@ static void do_cmd(int c)
4172 if (dot != (end-1)) { 4173 if (dot != (end-1)) {
4173 dot_prev(); 4174 dot_prev();
4174 } 4175 }
4176 } else if (c == 'd') {
4177 dot_begin();
4178 dot_skip_over_ws();
4175 } else { 4179 } else {
4176 dot = save_dot; 4180 dot = save_dot;
4177 } 4181 }