Commits


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.


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.


missing NULL check


guard some pointer deferences


don't crash on forward-char on empty pages


typo


visually drop trailing spaces when formatting a page


arithmetic on void pointers is a GNU extension apparently Another useful warning got thanks to -pedantic.


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;


ensure descr and linedata are initialized


add about:license


added missing copyright header


mention that data/emoji.txt is copyright UNICODE, Inc.


don't add trailing NUL byte plus some doc improvements and a missing return


added missing include thanks Ben for noticing it!