← Commit list

38e9c8c95

Ron Yorston
Ron Yorston
2021-08-20
SUCCESS Duration: 154s

Subject

vi: don't right shift empty lines

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+2 -2
@@ -4092,8 +4092,8 @@ static void do_cmd(int c)
#endif
}
}
- } else /* if (c == '>') */ {
- // shift right -- add tab or tabstop spaces
+ } else if (/* c == '>' && */ p != end_line(p)) {
+ // shift right -- add tab or tabstop spaces on non-empty lines
char_insert(p, '\t', allow_undo);
}
#if ENABLE_FEATURE_VI_UNDO