mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Better char selection in EditView
This commit is contained in:
parent
c1ea3e7345
commit
9ab4848180
@ -72,7 +72,7 @@ impl View for EditView {
|
||||
'_'
|
||||
} else {
|
||||
// Get the char from the string... Is it so hard?
|
||||
self.content[self.cursor..].chars().next().unwrap()
|
||||
self.content.chars().nth(self.cursor).unwrap()
|
||||
};
|
||||
printer.print_hline((self.cursor, 0), 1, c as u64);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user