summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-12 23:52:07 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-12 23:52:07 +0100
commit5130e96ad24402a92c94504491d7950a2eeded86 (patch)
tree6c0807036246b18a068c180034316768520ab34a
parent3f03adafc46baeaee54f44b61a9638fedd8a47cb (diff)
FIX: cursor is off by one in password
-rw-r--r--development.md2
-rw-r--r--src/term_manager.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/development.md b/development.md
index 648cc1c..d1cb383 100644
--- a/development.md
+++ b/development.md
@@ -632,7 +632,7 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [ ] Draw trait
- [x] better messages when asking a password
- [x] FIX: trash is buggy. Can't delete definitely. Display is wrong when empty.
-- [ ] FIX: cursor is off by one in password
+- [x] FIX: cursor is off by one in password
## TODO
diff --git a/src/term_manager.rs b/src/term_manager.rs
index 178cfc0..633b2d6 100644
--- a/src/term_manager.rs
+++ b/src/term_manager.rs
@@ -675,7 +675,7 @@ impl<'a> WinSecondary<'a> {
const ATTR_YELLOW: Attr = color_to_attr(Color::YELLOW);
const EDIT_BOX_OFFSET: usize = 10;
const SORT_CURSOR_OFFSET: usize = 38;
- const PASSWORD_CURSOR_OFFSET: usize = 8;
+ const PASSWORD_CURSOR_OFFSET: usize = 9;
fn new(status: &'a Status, index: usize) -> Self {
Self {