diff options
Diffstat (limited to 'core/normal.zig')
| -rw-r--r-- | core/normal.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/normal.zig b/core/normal.zig index 1f7ce1a7..7efe0bf6 100644 --- a/core/normal.zig +++ b/core/normal.zig @@ -1094,6 +1094,8 @@ pub fn textAction(e: Editor, t: *Text, a: modal.Normal.Action) edit.Error!void { if (comptime Editor.lib) return; // typed again by a macro, Esc is only helix's if (e.p.macro.replaying > 0) return; + // The warnings and errors first, then the previous pane. + if (e.p.messages.retire(&.{ .warn, .@"error" }) > 0) return; tagline.exitHeader(e.p); // out of a header too, as Shift-Esc return exec.runBuiltin(e.p, .Last, e.p.view().active, "", null); }, |
