mirror of
https://github.com/makew0rld/amfora.git
synced 2024-09-11 05:55:27 +03:00
fixed non-exhaustive switch case
This commit is contained in:
parent
2c5d984759
commit
8c6950635a
@ -397,13 +397,12 @@ func Init(version, commit, builtBy string) {
|
||||
tabs[curTab].view.ScrollToHighlight()
|
||||
return nil
|
||||
case config.CmdInvalid:
|
||||
return nil
|
||||
}
|
||||
if event.Key() == tcell.KeyEsc {
|
||||
tabs[curTab].mode = tabModeDone
|
||||
tabs[curTab].view.SetBytes(originalText)
|
||||
layout.RemoveItem(searchBar)
|
||||
return nil
|
||||
if event.Key() == tcell.KeyEsc {
|
||||
tabs[curTab].mode = tabModeDone
|
||||
tabs[curTab].view.SetBytes(originalText)
|
||||
layout.RemoveItem(searchBar)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return event
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user