mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
Cleanup: use named constant
This commit is contained in:
1 parent
679a196dc7
commit
e633ae6aa6
1 file changed
+1
-1
@@ -296,7 +296,7 @@ func (g *Gui) pollEvent() GocuiEvent {
|
||||
ch = tev.Rune()
|
||||
if ch == ' ' {
|
||||
// special handling for spacebar
|
||||
k = 32 // tcell keys ends at 31 or starts at 256
|
||||
k = tcell.Key(KeySpace)
|
||||
ch = rune(0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user