softwrap: iterate through softwrapped chunks in adjust_viewport()
Use go_back_chunks() to adjust edittop, instead of special casing the computation of goal when softwrapping. Now softwrap mode and non-softwrap mode will behave the same way when edittop can be partially scrolled off the screen, which is forthcoming. (Note that the top line of the screen can't be partially scrolled yet, so we have to work around that for now.)
Showing
+11 -15
Please register or sign in to comment