Skip to content

Commit

Permalink
Move cursor to pasted line
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc committed Nov 28, 2024
1 parent 4ee64df commit 5d8605c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl Editor {
self.lines.insert(i + 1, line);
self.cursor.x = 0;
self.offset.x = 0;
self.print_screen();
self.handle_arrow_down(); // Move cursor to pasted line
}
}

Expand Down

0 comments on commit 5d8605c

Please sign in to comment.