1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-01 18:31:08 +00:00

fixed non-exhaustive switch case

This commit is contained in:
schubisu 2021-06-26 11:48:53 +02:00
parent 2c5d984759
commit 8c6950635a

View File

@ -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
}