diff options
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index e6527e36b..508477954 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -4092,8 +4092,8 @@ static void do_cmd(int c) | |||
4092 | #endif | 4092 | #endif |
4093 | } | 4093 | } |
4094 | } | 4094 | } |
4095 | } else /* if (c == '>') */ { | 4095 | } else if (/* c == '>' && */ p != end_line(p)) { |
4096 | // shift right -- add tab or tabstop spaces | 4096 | // shift right -- add tab or tabstop spaces on non-empty lines |
4097 | char_insert(p, '\t', allow_undo); | 4097 | char_insert(p, '\t', allow_undo); |
4098 | } | 4098 | } |
4099 | #if ENABLE_FEATURE_VI_UNDO | 4099 | #if ENABLE_FEATURE_VI_UNDO |