Commits


fix top_line/current_line wrt L_HIDDEN this fixes some infinite loops that may happen if the first line is hidden, or things happens. The idea is to move the line forward/backward until a non-hidden one is found.


update the push-button behaviour


add support for hidden lines; push-button now toggle pre blocks


chain else/if


s/cont/flags


scroll one line more on page up/down with the new implementation of redraw_window, we need to scroll a line more to "push" for a new page scroll.


update README.md * drop the "shouldn't lag" bit, it doesn't feel right * specify: that's the UI for OOB that's missing, not the support alogether


small improvements for about:new * add the name of the search engine * add a link to about:about


slightly improve about:about


remove useless TODO comment


retire restore_cursor and the force-redraw optimization (for now) don't consider restore_cursor as a public interface and while there rename it as restore_curs_x, as it describes better the behaviour of the function. I have to disable the buffer->force-redraw optimization, at least from now, given that cmd.c don't update curs_y anymore, and with that optimisation in place the cursor y position doesn't get updated upon redraw. Add a comment as a future note though.


introduce forward_line and don't touch curs_y anymore redraw_window in ui.c already compute the curs_y by itself, so don't update it from here. Also, introduce forward_line: moves the cursor up/down n lines. It's amazing sometimes how a good interface can simplify a large chunk of code!


drop unnecessary restore_cursor calls


restore early, restore often


erase buffer in load_page_from_str possible leak? not confirmed, but this way it reads better.