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()
|
tabs[curTab].view.ScrollToHighlight()
|
||||||
return nil
|
return nil
|
||||||
case config.CmdInvalid:
|
case config.CmdInvalid:
|
||||||
return nil
|
if event.Key() == tcell.KeyEsc {
|
||||||
}
|
tabs[curTab].mode = tabModeDone
|
||||||
if event.Key() == tcell.KeyEsc {
|
tabs[curTab].view.SetBytes(originalText)
|
||||||
tabs[curTab].mode = tabModeDone
|
layout.RemoveItem(searchBar)
|
||||||
tabs[curTab].view.SetBytes(originalText)
|
return nil
|
||||||
layout.RemoveItem(searchBar)
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
return event
|
return event
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user