Commit Briefs

Omar Polo

fix counter during scroll-up/down


Omar Polo

add macro GUARD_READ_ONLY


Omar Polo

improve about:help


Omar Polo

simplify the dark/light theme

there's no need to override the line decorations now that are the defaults


Omar Polo

prettify the defaults settings

Switch from the brutalist approach to a prettier ones. If someone likes the old brutalist theme, it's still available as contrib/brutalist.config: $ cp contrib/brutalist.config ~/.telescope/config or $ telescope -c contrib/brutalist


Omar Polo

evtimer_set is enough

don't need to evtimer_add to initialize the event.


Omar Polo

allow invalid tab ids

don't consider an invalid tab id as an error. Things are asynchronous, we may issue a request but then stop it, and still get data relative to that. So, ignore the request when we get an invalid id.


Omar Polo

don't crash on invalid tab ids in handle_imsg_buf

My original idea was to crash when receiving data for an invalid tab. This idea just doesn't hold well in an asynchronous context. If we change page before the current tab finished loading we issue tab_stop, but even after that we still could receive a IMSG_BUF for that old tab id.


Omar Polo

missing NULL check


Omar Polo

guard some pointer deferences



Omar Polo

typo



Omar Polo

arithmetic on void pointers is a GNU extension apparently

Another useful warning got thanks to -pedantic.


Omar Polo

emit a dummy NUL byte on empty files

an empty initializer, such as uint8_t foo[] = { }; raises a warning: "use of GNU empty initializer extension" using -pedantic. This adds a dummy NUL byte that's not accounted in the len counter. So, now it produces: uint8_t foo[] = { 0x0 }; size_t foo_len = 0;