1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

minor refactor

This commit is contained in:
Jesse Duffield
2021-04-05 09:01:08 +10:00
parent 6a0066253f
commit 464d022a86
4 changed files with 51 additions and 54 deletions

View File

@ -190,7 +190,9 @@ func (g *Gui) pollEvent() GocuiEvent {
return GocuiEvent{Type: eventResize, Width: w, Height: h}
case *tcell.EventKey:
if g.PlayMode == RECORDING {
g.Recording.KeyEvents = append(g.Recording.KeyEvents, NewTcellKeyEventWrapper(tev, g.timeSinceStart()))
g.Recording.KeyEvents = append(
g.Recording.KeyEvents, NewTcellKeyEventWrapper(tev, g.timeSinceStart()),
)
}
k := tev.Key()