Commits
- Commit:
f3bcf8f2286bb8e34ca1364a582c15978458c67c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve colors when olivetti-mode is enabled
- Commit:
74a2587f4c4a35c064c63e8434ec02b805caa63c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
first scratch for colour support!
- Commit:
770de0789dd17560929a4844ff26c0bc83bf51d3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kill empty line
- Commit:
2c748a1f1ea6ec51c321712170e1a7df470300a7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add enable-colors (variable)
currently unused, will help later when adding colour support
- Commit:
923f9ce5257203206ad6ed12b05f7d1576eb1ab0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
work around some GCC warnings
clang doesn't emit any. To be honest, some of them are actually right
(like the missing `void'), others are impossible but still it's not a
bad idea to initialize some variable. Future me maybe will be
thankful.
- Commit:
3323faaf68d2b9a935856c12b10d27df7be97bdb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
detect tab switch and force redraw in case
- Commit:
960b01da276db9c9b70d0756a6d30833d37174f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bring back the ugly hack for the side window
- Commit:
41a9ae4060ba6215378a97251538791fd94605f6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve variable section
- Commit:
da979bfe39595722845fbe526eef5184b7ea7215
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync
- Commit:
4f0158a7dab57fbadefe5002e9af43b950e68121
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix end-of-buffer glitch
before, the cursor went one line after the end and glitch everything.
- Commit:
28eca2fc4a093ee751cf49c8087e6bb09a02ae44
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix cmd_scroll_line_up
buffer->current_line *IS NOT* the first line at the top of the
window...
- Commit:
7f963c410faa911376fc67144d2ca817d7cfeae8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kill ui_notify and export {v,}message
- Commit:
2b2d2872b6aacc66cdcc7af08ab684c12616c33d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move all cmd_* functions in their own file
this detangles definitely the commands from the ui. Various variables
and struct from ui.c needed to be exported, aside from that, no
functional changes.
- Commit:
a00b4c97e6dd47ac8ada094890b515cfe6744607
- From:
- Omar Polo <op@omarpolo.com>
- Date:
optimize redraw_window
don't redraw the page if no scrolling happened. There's still need to
``force'' the redraw sometimes, like after a resize or after toggling
olivetti-mode, so add a buffer->force_redraw flag for it.
- Commit:
f9560742eabf2ce27a6204047984be113db92642
- From:
- Omar Polo <op@omarpolo.com>
- Date:
disentangle cmd_scroll_line_up/down and ncurses
cmd_scroll_line_up and down are the fundamental functions called every
time there's a need to scroll the window. cmd_scroll_up/down calls
them in a loop, cmd_next_line and cmd_previous_line calls them too.
And so on.
These two functions, historically predates some of the abstractions of
the `struct buffer', and handle ncurses directly using wscrl and
print_line.
However, since dispatch_stdio calls redraw_tab anyway, there's no need
to update the window content here. (Well, wscrl + one print_vline *may*
be a bit faster than the loop over print_vline in redraw_window, but
we can optimise the latter later.)
This also (should) dis-entangle the cmd_* functions and ncurses
completely \o/