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

fix popup panel resizing

This commit is contained in:
Jesse Duffield
2018-09-05 19:07:46 +10:00
parent c1bf1e52b0
commit 422b263df4
6 changed files with 26 additions and 39 deletions

View File

@ -114,8 +114,8 @@ func (v *View) EditDelete(back bool) {
func (v *View) EditNewLine() {
v.breakLine(v.cx, v.cy)
v.ox = 0
v.cy = v.cy + 1
v.cx = 0
v.MoveCursor(0, 1, true)
}
// MoveCursor moves the cursor taking into account the width of the line/view,