Commit Briefs

Omar Polo

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!



Omar Polo

restore early, restore often


Omar Polo

erase buffer in load_page_from_str

possible leak? not confirmed, but this way it reads better.


Omar Polo

introduce erase_buffer


Omar Polo

reset top_line/line_off too


Omar Polo

handle the resize better

Try to preserve as much as possible the current_line and top_line during wrap_page. In redraw_window recompute the correct y position.


Omar Polo

optimisation: cache the top_line vline

instead of using the line_off + vline_nth, cache the current top line.


Omar Polo

move load_default_keys to defaults.c

free ui.c from (strictly) non-ui code



Omar Polo

typo


Omar Polo

tagged 0.3 -- Spaceman (tags/0.3)


Omar Polo

typo

prefix "→ " " " ended up using both as prefix for the line and the continuations the first string given, ignoring the second argument. Found and reported by tgl, thanks!!


Omar Polo

screenshot updated


Omar Polo

improve documentation about colors

mention the color0-255 set