Files
cproof/src/ui
Jabber Developer 6ad8a19053
All checks were successful
CI Code / Check spelling (pull_request) Successful in 22s
CI Code / Check coding style (pull_request) Successful in 38s
CI Code / Linux (arch) (pull_request) Successful in 13m4s
CI Code / Linux (debian) (pull_request) Successful in 13m32s
CI Code / Linux (ubuntu) (pull_request) Successful in 16m23s
CI Code / Check spelling (push) Successful in 19s
CI Code / Check coding style (push) Successful in 37s
CI Code / Linux (arch) (push) Successful in 13m8s
CI Code / Linux (ubuntu) (push) Successful in 16m2s
CI Code / Linux (debian) (push) Successful in 16m26s
fix(buffer): use dynamic buffer size to prevent unnecessary buffer cleanups
Refactor buffer trimming logic to use dynamic line counts (_lines per entry)
against PAD_SIZE (10k) instead of fixed entry count (MAX_BUFFER_SIZE=200). This
prevents premature cleanups for short messages, reduces scrolling disruptions
during history loads, and scales better with rendered content size.

Delete oldest/newest entry from opposite end only when total lines approach
ncurses pad limit, minimizing unnecessary deletions.
Simplify overflow warning log by removing unused MAX_BUFFER_SIZE reference.

Update buffer.c header for improved DX:
- Add detailed module overview explaining role (in-memory UI buffer vs. DB
persistence), key features (trimming, metadata), and integration (ncurses).
- Shorten copyright/license boilerplate to concise pointer (LICENSE ref).
- Add fork notice; preserve original copyrights per GPLv3.

Partially addresses #36 (stuck scroll mitigation via fewer cleanups)
Related to #36
2025-10-07 15:12:20 +02:00
..
2025-03-27 20:06:38 +01:00
2023-08-31 23:14:02 +02:00
2025-03-10 11:45:15 +01:00
2025-03-27 20:06:38 +01:00
2025-03-12 10:15:39 +01:00
2025-03-27 20:06:38 +01:00
2023-08-31 23:14:02 +02:00
2025-03-27 20:06:38 +01:00
2020-09-04 12:55:20 +02:00
2019-11-13 12:11:05 +01:00
2025-03-27 20:06:38 +01:00
2020-07-07 14:18:57 +02:00
2025-03-27 20:06:38 +01:00
2025-03-12 10:09:41 +01:00
2023-12-12 18:26:21 +01:00
2023-08-31 23:14:02 +02:00