summary refs log tree commit diff
path: root/buffer.c
AgeCommit message (Collapse)Author
2022-07-30Update copyrights, authorsJune McEnroe
2021-06-09Replace catf with seprintfC. McEnroe
2021-01-26Add numbers to buffer linesC. McEnroe
This directly correlates hard-wrapped lines with the soft lines they were wrapped from. Choosing uint here because it doesn't change the size of struct Line. It doesn't at all matter since buffers only hold 1024 lines at a time anyway.
2021-01-25Do not copy time to wrapped linesC. McEnroe
2021-01-23Remove use of "%n" to appease de RaadtC. McEnroe
Sure, it was completely unnecessary, but I resent being told how to use snprintf. https://cvsweb.openbsd.org/src/lib/libc/stdio/vfprintf.c?rev=1.79&content-type=text/x-cvsweb-markup
2021-01-16Generalize ignore toggling to visibility thresholdC. McEnroe
2021-01-09Count width of 2 for invalid multibyte with high bitC. McEnroe
2021-01-04Collapse whitespace while wrapping and discard trailing spaceC. McEnroe
The latter avoids an extra blank line when a message ends with whitespace that hits the edge of the window.
2020-10-09Clear wrapping point at alignment tabC. McEnroe
This fixes odd wrapping when a nick contains a hyphen and there are no further wrapping points.
2020-09-11Copy style from wrapping pointC. McEnroe
This fixes a bug when wrapping on a word with style changes inside it, where the copied style would be different depending on the width of the terminal.
2020-09-08Include DEL in characters ncurses will print in ^A formC. McEnroe
2020-09-07Let wrapped lines use the last columnC. McEnroe
2020-09-06Handle non-alignment tabs in line wrappingC. McEnroe
2020-09-02Recalculate unreadHard on reflowC. McEnroe
2020-09-02Hide ignored messages at the soft -> hard buffer layerC. McEnroe
This restores normal scrolling behaviour.
2020-09-02Preserve style after alignmentC. McEnroe
This makes wrapping text with background colour look much better.
2020-09-02Actually insert blank lines in the soft bufferC. McEnroe
So they can be preserved forever!
2020-09-02Don't consider the alignment tab a wrapping pointC. McEnroe
2020-09-02Fix line wrapping in various waysC. McEnroe
Never split a codepoint, don't set wrapping point unless we're not already wrapping, wrap on any unicode whitespace, only clear rest of line if still on the same line...
2020-09-02Render one main window from buffersC. McEnroe
Still missing: split scrolling and preserving a blank on reflow either from resize or ignore toggling. Anecdata: on one of my instances of catgirl, RAM usage of the previous release was ~30M, RAM usage of this commit was ~12M.
2020-09-01Implement buffer line wrappingC. McEnroe
Not yet rendered in the UI! Just done in parallel.
2020-09-01Factor buffer out of uiC. McEnroe
In preparation for doing line wrapping outside of ncurses.