Better char selection in EditView

This commit is contained in:
Alexandre Bury 2015-05-27 00:15:19 -07:00
parent c1ea3e7345
commit 9ab4848180

View File

@ -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);
}