Skip to content

Commit

Permalink
micro: DoEvent: Don't forward the resize event into the InfoBar
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Nov 23, 2023
1 parent d8e9d61 commit de44ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/micro/micro.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ func DoEvent() {

ulua.Lock.Lock()
// if event != nil {
if action.InfoBar.HasPrompt {
_, resize := event.(*tcell.EventResize);
if action.InfoBar.HasPrompt && !resize {
action.InfoBar.HandleEvent(event)
} else {
action.Tabs.HandleEvent(event)
Expand Down

0 comments on commit de44ac3

Please sign in to comment.