Skip to content

Commit

Permalink
fix go to line
Browse files Browse the repository at this point in the history
  • Loading branch information
hgwr committed Aug 17, 2024
1 parent 7c2a432 commit 46be071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/commands/go_to_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Command for GoToLineCommand {
editor.window_position_in_buffer.col = 0;
if line_number > 0 {
let mut next_line = NextLine {};
for _ in 0..line_number - 1 {
for _ in 0..line_number {
next_line.execute(editor)?;
}
}
Expand Down

0 comments on commit 46be071

Please sign in to comment.