File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ func (a *App) helpCmd(evt *tcell.EventKey) *tcell.EventKey {
695695
696696// previousView returns to the view prior to the current one in the history
697697func (a * App ) previousView (evt * tcell.EventKey ) * tcell.EventKey {
698- if evt != nil && evt .Rune () == 'b' && a .Prompt ().InCmdMode () {
698+ if evt != nil && evt .Rune () == rune ( ui . KeyB ) && a .Prompt ().InCmdMode () {
699699 return evt
700700 }
701701 cmds := a .cmdHistory .List ()
@@ -717,7 +717,7 @@ func (a *App) previousView(evt *tcell.EventKey) *tcell.EventKey {
717717
718718// lastView switches between the last view and this one a la `cd -`
719719func (a * App ) lastView (evt * tcell.EventKey ) * tcell.EventKey {
720- if evt != nil && evt .Rune () == '-' && a .Prompt ().InCmdMode () {
720+ if evt != nil && evt .Rune () == ui . KeyDash && a .Prompt ().InCmdMode () {
721721 return evt
722722 }
723723 cmds := a .cmdHistory .List ()
You can’t perform that action at this time.
0 commit comments