1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

ignore global rune keybindings when in editable view

This commit is contained in:
Jesse Duffield
2018-08-25 09:13:29 +10:00
parent 6c389df57d
commit ee7f88e123
2 changed files with 122 additions and 19 deletions

View File

@ -664,7 +664,7 @@ func (g *Gui) execKeybindings(v *View, ev *termbox.Event) (matched bool, err err
if kb.matchView(v) {
return g.execKeybinding(v, kb)
}
if kb.viewName == "" {
if kb.viewName == "" && (!v.Editable || kb.ch == 0) {
globalKb = kb
}
}