Add more vi commands
This commit is contained in:
parent
e6df88f698
commit
2342bf0eae
4 changed files with 54 additions and 0 deletions
|
|
@ -75,6 +75,13 @@ impl<'a> Edit<'a> for Editor<'a> {
|
|||
self.select_opt
|
||||
}
|
||||
|
||||
fn set_select_opt(&mut self, select_opt: Option<Cursor>) {
|
||||
if self.select_opt != select_opt {
|
||||
self.select_opt = select_opt;
|
||||
self.buffer.set_redraw(true);
|
||||
}
|
||||
}
|
||||
|
||||
fn shape_as_needed(&mut self) {
|
||||
if self.cursor_moved {
|
||||
self.buffer.shape_until_cursor(self.cursor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue