Skip to content

Commit

Permalink
history index display is off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
jdillon committed May 11, 2017
1 parent 346cf06 commit c8b3c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static void history(LineReader reader, PrintStream out, PrintStream err,
AttributedStringBuilder sb = new AttributedStringBuilder();
sb.append(" ");
sb.style(AttributedStyle.BOLD);
sb.append(String.format("%3d", entry.index()));
sb.append(String.format("%3d", entry.index() + 1));
sb.style(AttributedStyle.DEFAULT);
if (opt.isSet("d")) {
sb.append(" ");
Expand Down

0 comments on commit c8b3c0c

Please # to comment.