diff options
-rw-r--r-- | editors/vi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c index 47b13b3ca..f4da38071 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -3596,6 +3596,7 @@ static void do_cmd(int c) | |||
3596 | if (cmdcnt > 0) { | 3596 | if (cmdcnt > 0) { |
3597 | dot = find_line(cmdcnt); // what line is #cmdcnt | 3597 | dot = find_line(cmdcnt); // what line is #cmdcnt |
3598 | } | 3598 | } |
3599 | dot_begin(); | ||
3599 | dot_skip_over_ws(); | 3600 | dot_skip_over_ws(); |
3600 | break; | 3601 | break; |
3601 | case 'H': // H- goto top line on screen | 3602 | case 'H': // H- goto top line on screen |
@@ -3652,6 +3653,7 @@ static void do_cmd(int c) | |||
3652 | dot = screenbegin; | 3653 | dot = screenbegin; |
3653 | for (cnt = 0; cnt < (rows-1) / 2; cnt++) | 3654 | for (cnt = 0; cnt < (rows-1) / 2; cnt++) |
3654 | dot = next_line(dot); | 3655 | dot = next_line(dot); |
3656 | dot_skip_over_ws(); | ||
3655 | break; | 3657 | break; |
3656 | case 'O': // O- open a empty line above | 3658 | case 'O': // O- open a empty line above |
3657 | // 0i\n ESC -i | 3659 | // 0i\n ESC -i |