Skip to content

Commit

Permalink
core: handle save file shortcut error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmigpin committed Sep 27, 2018
1 parent db55aca commit 0984e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/erow.go
Expand Up @@ -112,7 +112,9 @@ func (erow *ERow) initHandlers() {
mods := evt.Mods.ClearLocks()
switch {
case mods.Is(event.ModCtrl) && evt.LowerRune() == 's':
erow.Info.SaveFile()
if err := erow.Info.SaveFile(); err != nil {
erow.Ed.Error(err)
}
case mods.Is(event.ModCtrl) && evt.LowerRune() == 'f':
FindShortcut(erow)
}
Expand Down

0 comments on commit 0984e17

Please sign in to comment.