w.StartLine.Row = 0
}
w.Relocate()
+
+ for _, c := range w.Buf.GetCursors() {
+ c.LastVisualX = c.GetVisualX()
+ }
}
}
+ b.GetVisualX = func(loc buffer.Loc) int {
+ return w.VLocFromLoc(loc).VisualX
+ }
}
func (w *BufWindow) GetView() *View {
func (w *BufWindow) Resize(width, height int) {
w.Width, w.Height = width, height
+ w.updateDisplayInfo()
+
w.Relocate()
+
+ if w.Buf.Settings["softwrap"].(bool) {
+ for _, c := range w.Buf.GetCursors() {
+ c.LastVisualX = c.GetVisualX()
+ }
+ }
}
func (w *BufWindow) SetActive(b bool) {