From 35aa70de4b5060209e3be21c6e512fd74ef77eaa Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 12 Apr 2023 19:16:29 +0200 Subject: [PATCH] Fix editor cursor --- src/widgets/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/editor.rs b/src/widgets/editor.rs index 893d4da..8b4d91d 100644 --- a/src/widgets/editor.rs +++ b/src/widgets/editor.rs @@ -452,7 +452,7 @@ impl Editor<'_> { let cursor_row: i32 = cursor_row.try_into().unwrap_or(i32::MAX); let cursor_col: i32 = cursor_col.try_into().unwrap_or(i32::MAX); - Pos::new(cursor_row, cursor_col) + Pos::new(cursor_col, cursor_row) } fn draw_impl(&mut self, frame: &mut Frame) {