Commit Briefs
initialize events: prevents libevent2 from crashing
clechoev and resizeev are two globally defined event, and thus guaranteed to be zeroed. While OpenBSD' libevent1 is fine when calling event_pending on such events, libevent2 complains and, probably depending on which flags were used, crashes. Prompted and tested by Andrea Feletto, thanks!
sue SIGSTOP instead of SIGTSTP
maybe in the future we'll try to handle SIGTSTP?
optimization: don't endwin() when we can simply move the windows
After a resize we should do the endwin+refresh+clear dance, but in other situations, like when entering the minibuffer, we can simply re-wrap the page and move the windows. This prevents a small flash when entering the minibuffer, as well as fewer redraw (redraw after the command and shortly after because it was scheduled).
refactor struct vline
the new `meta.data' field will be useful for holding completions data.
support completions in minibuffer + related interactive fns
* cmd.c (cmd_previous_completion): add previous-completion (cmd_next_completion): add next-completion (cmd_insert_current_candidate): add insert-current-candidate * minibuffer.c (enter_minibuffer): support completions in minibuffer