mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-01 00:54:58 +02:00
Better escape code parsing (thanks to Ryooooooga) (#2514)
This commit is contained in:
14
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
14
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
@ -812,6 +812,20 @@ func (v *View) SetContent(str string) {
|
||||
v.writeString(str)
|
||||
}
|
||||
|
||||
func (v *View) CopyContent(from *View) {
|
||||
v.writeMutex.Lock()
|
||||
defer v.writeMutex.Unlock()
|
||||
|
||||
v.clear()
|
||||
|
||||
v.lines = from.lines
|
||||
v.viewLines = from.viewLines
|
||||
v.ox = from.ox
|
||||
v.oy = from.oy
|
||||
v.cx = from.cx
|
||||
v.cy = from.cy
|
||||
}
|
||||
|
||||
// Rewind sets read and write pos to (0, 0).
|
||||
func (v *View) Rewind() {
|
||||
v.writeMutex.Lock()
|
||||
|
Reference in New Issue
Block a user