mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
make indent/unindent exit select mode
This commit is contained in:
parent
2acf5e365e
commit
34de1cab62
@ -4207,6 +4207,7 @@ fn indent(cx: &mut Context) {
|
||||
}),
|
||||
);
|
||||
doc.apply(&transaction, view.id);
|
||||
exit_select_mode(cx);
|
||||
}
|
||||
|
||||
fn unindent(cx: &mut Context) {
|
||||
@ -4246,6 +4247,7 @@ fn unindent(cx: &mut Context) {
|
||||
let transaction = Transaction::change(doc.text(), changes.into_iter());
|
||||
|
||||
doc.apply(&transaction, view.id);
|
||||
exit_select_mode(cx);
|
||||
}
|
||||
|
||||
fn format_selections(cx: &mut Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user