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

small fixes

This commit is contained in:
Jesse Duffield
2021-10-17 17:38:59 +11:00
committed by github-actions[bot]
parent 345c90ac05
commit e7c27b6f4a
7 changed files with 13 additions and 10 deletions

View File

@ -1160,6 +1160,12 @@ func updatedCursorAndOrigin(prevOrigin int, size int, cursor int) (int, int) {
}
func (v *View) ClearTextArea() {
v.TextArea.Clear()
v.Clear()
v.writeMutex.Lock()
defer v.writeMutex.Unlock()
v.TextArea.Clear()
_ = v.SetOrigin(0, 0)
_ = v.SetCursor(0, 0)
}