Commits
- Commit:
cf8fcf6437e729c6de0cd278af49a70535cd81be
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make clear to which struct every L_* flag is supposed to belong to
- Commit:
bd4a08a74023593128f1f6fac9e0f4a093a8441f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
start to refactor the rendering
Previously each vline (visual line) had a full copy of its associated
string, this changes it so it only slices a part of the parent line.
Reduces significantly the memory usage.
This actually worsen the emojify-link glitch reported by Freezr after
the some recent refactoring in the wrapping code. Not a big deal since
I'm about to restructure the whole rendering bit by bit (hopefully!)
- Commit:
6b91e1041d28dd381315414c359c84c2d1fa2d93
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove wrap_one, use an extra parameter for wrap_text
- Commit:
d5e0ee089932fa61ce56746c09c77019353d5614
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use libgrapheme for text reflowing
unlike the previous hack, libgrapheme is UNICODE 15.0 compliant (at the
time of writing) and provides some nice API. While here, drop the hard
wrap method for preformatted blocks: always use the normal wrapping.
Since libgrapheme is not yet widely available, future commits will
probably add a bundled version to ease packaging. I'll also start to
replace various home-grown UNICODE/utf8 handling routines with functions
from libgrapheme.
- Commit:
2534e4d5e993e0f9f72955e001f2ecd5753ddf23
- From:
- Omar Polo <op@omarpolo.com>
- Date:
garbage collect even more IMSG types
these are unused after the fs/ui merge.
- Commit:
c6e37ffde911f0a5e1a09ff309d347497c7a1d2e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/IMSG_GET_RAW/IMSG_GET and gc unused IMSG_GET_FILE
- Commit:
b59bcb53ccddc0a8f27813afbf127e54f554ae42
- From:
- Omar Polo <op@omarpolo.com>
- Date:
garbage collect `dequeue_first_download'
- Commit:
fd984e767a8e0e4978cfe072899282a8265a911e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop the `buffer' flag for enqueue_download
it's unused as write_buffer now writes a buffer to the disk.
- Commit:
3078e1bc2a28ec8a601f3880af32291ca7119434
- From:
- Omar Polo <op@omarpolo.com>
- Date:
merge update_cert and tofu_update into tofu_update_persist
- Commit:
4fa88f57fead5f472c4bbd60c65d70d884ccd6ee
- From:
- Omar Polo <op@omarpolo.com>
- Date:
merge tofu_add and save_cert into tofu_save
- Commit:
486bde7d965b776a646acd77807b514f3e16537c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move bookmark_page off fs.c
- Commit:
f63b8f7342aefba6b3dac50d6790981987c8faa8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
merge the fs into the ui process
The previous separation between the fs and ui process wasn't that good.
The idea was to have a `ui' process tightly sandboxed, but it was a lie
actually. `ui' was one imsg away from making internet connections and
accessing data on the disk, so it wasn't really limited in (almost) any
way.
Furthermore, having to serialize data to/from the fs proc started to
become not really maneagable.
As a first step to fix this situation, join the fs and ui process.
- Commit:
0110411e1e32fa44d6e086f652dac916fc8707cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
partial revert of "abstract over evbuffers"
partial revert of commit d54dd8160b88709f3d243e1410a781e5de7fc187. We
don't really need an abstraction over "printf-like" things. I can
just use plain old FILEs. open_memstream (which conforms to POSIX.1)
is what I should have used from the beginning in my mcache
implementation.
- Commit:
868b3a8f52ea2f90a1965661798d977d307e3b38
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add write-buffer
saves a page to the disk. Also, changes the order of the downloads so
the new one is always at the top.
- Commit:
d54dd8160b88709f3d243e1410a781e5de7fc187
- From:
- Omar Polo <op@omarpolo.com>
- Date:
parser/serialize: abstract over evbuffers
the serialize "method" will soon be used in other context where using
evbuffers would be awkward. Introduce a small abstraction over it: a
printfn (print function) fprintf-like.