Commit Briefs

Omar Polo

iri: fix logic in iri_unparse

make sure path starts with "/" only when there's an authority part, not when it's not there!




Omar Polo

iri: draft iri_unparse


Omar Polo

iri: avoid unpleasant infinite loop in remove_dot_segments

need to copy until the *next* path segment, otherwise we loop indefinitely if *p == '/'.





Omar Polo

use the new iri parser in ir_select_gemini

While here also add some error checking.



Omar Polo

hook iri.[ch] into the build


Omar Polo

draft of the new iri parser

for the moment is just a URI (RFC3986) parser, and not even a complete one, but I like it much more than phos_uri. It's more gentle in the memory consumption and has a cleaner API. It's not complete, some parts are still stubbed or completely to implement, but it's the start. It compiles. Step-by-step integration of it in telescope and testing will come later.



Omar Polo

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!)


Omar Polo

make phos_uri compile with -Werror

temporary band-aid until i find the time to rewrite this stuff...