Commit Briefs
remove imsg_borrow_str
it's redundant due to ibuf_borrow_str()
rework net_read() a bit
- don't stop after parsing the header maybe there's some page data in the buffer, let's try to forward it immediately too. - use a local buffer plus bufferevent_read()
add certs.[ch]
adapted from gmid. we'll soon use it to provide client certificates support in telescope.
save finger:// and gopher:// URLs to the history
gemini is handled when the 2x reply is received. Gopher and Finger lack an equivalent, so call history_add() for them at EOF.
bp_select: call exit_minibuffer() when done
Currently it is still fine to access ministate after exit_minibuffer(). In the future, if we ever support recursive minibuffers it won't. So, defer the exit_minibuffer() call and use minibuffer_compl_text() instead of peeking into ministate. While here, also add the "Bookmarked" message when it successfully bookmarked the page.
fix bookmark_page() failure check
it returns -1/0 not 0/1