← Commit list

1fd7129bc

Denys Vlasenko
Denys Vlasenko
2011-11-28
FAILED Duration: 204s

Subject

vi: fix [end] key handling

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+1 -1
@@ -3319,7 +3319,7 @@ static void do_cmd(int c)
case KEYCODE_END: // Cursor Key End
for (;;) {
dot = end_line(dot);
- if (--cmdcnt > 0)
+ if (--cmdcnt <= 0)
break;
dot_next();
}