softwrap: save and restore firstcolumn when replacing text
In do_replace(), replacing text may change firstcolumn if the next match is offscreen, and replacing text after that will not change it back. In order to keep the viewport unchanged, we have to save and restore not just edittop, but firstcolumn as well.
Showing
+3 -1
Please register or sign in to comment