Skip to content

Commit

Permalink
Cursor badly positioned after creating Status bar, fixes #977 (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn authored Jun 7, 2024
1 parent 219dada commit dce7443
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terminal/src/main/java/org/jline/utils/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public void update(List<AttributedString> lines, boolean flush) {
if (newScrollRegion < scrollRegion) {
// We need to scroll up to grow the status bar
terminal.puts(Capability.save_cursor);
terminal.puts(Capability.cursor_address, scrollRegion, 0);
for (int i = newScrollRegion; i < scrollRegion; i++) {
terminal.puts(Capability.cursor_down);
}
Expand Down

0 comments on commit dce7443

Please sign in to comment.