#47 Recenter acts goofy sometimes

已关闭
nuclearkev1 年之前创建 · 1 条评论
这个人很懒,什么都没留下。

This turns out to be caused by multi-line long lines (long lines without a \n). The issue also exists in both directions because both directions use the newline char to figure out what a line is but when it comes to recentering we need to do it based on the termbox row, within the context of the window (based on w_top). To fix this, I need to use the upup and dndn functions to just "move" the point by one row up or down until the new page is in the correct shift.

This turns out to be caused by multi-line long lines (long lines without a \n). The issue also exists in both directions because both directions use the newline char to figure out what a line is but when it comes to recentering we need to do it based on the termbox row, within the context of the window (based on w_top). To fix this, I need to use the `upup` and `dndn` functions to just "move" the point by one row up or down until the new page is in the correct shift.
Kevin "The Nuclear" Bloom 在代码提交 1 年之前 中引用了该工单
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。