fix exception caused by resizing in normal mode: we were passing 'buffer' to the TextScroll function previously, but we were meant to be passing 'newBuffer'. We are passing 'newBuffer' in this new commit as we are meant to.
This commit is contained in:
@@ -98,7 +98,7 @@ struct
|
|||||||
val newBuffer = LineGap.goToIdx (cursorIdx, buffer)
|
val newBuffer = LineGap.goToIdx (cursorIdx, buffer)
|
||||||
val visualScrollColumn =
|
val visualScrollColumn =
|
||||||
TextScroll.getScrollColumn
|
TextScroll.getScrollColumn
|
||||||
(buffer, cursorIdx, newWidth, prevScrollColumn)
|
(newBuffer, cursorIdx, newWidth, prevScrollColumn)
|
||||||
val newBuffer = LineGap.goToLine (startLine, newBuffer)
|
val newBuffer = LineGap.goToLine (startLine, newBuffer)
|
||||||
val lineIdx = TextBuilderUtils.getLineAbsIdxFromBuffer (startLine, buffer)
|
val lineIdx = TextBuilderUtils.getLineAbsIdxFromBuffer (startLine, buffer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user