Skip to content

Commit

Permalink
Cursor position computation is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 21, 2016
1 parent 8e45bb2 commit fd054cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ public void moveTo(int x, int y) {
}

public int getDisplayedCursor() {
int rwidth = size.getColumns();
int rwidth = size.getColumns() + 1;
int cursor = (printLineNumbers ? 8 : 0);
int cur = firstLineToDisplay;
int off = offsetInLineToDisplay;
Expand Down

0 comments on commit fd054cf

Please sign in to comment.