mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 04:36:24 +00:00
Cancel innermost snippet insertion when hitting esc
This commit is contained in:
parent
426ca94b52
commit
bd441723a0
1 changed files with 4 additions and 0 deletions
|
@ -1171,6 +1171,10 @@ impl Editor {
|
|||
return;
|
||||
}
|
||||
|
||||
if self.snippet_stack.pop().is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
if self.mode != EditorMode::Full {
|
||||
cx.propagate_action();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue