fix(scroll): handle edge case of extremely long messages #38

Manually merged
jabber.developer merged 1 commits from fix/buffer-cleanup into master 2025-10-08 11:21:47 +00:00

Prior commit (6ad8a190) did not properly handle overflow by long (9000 lines) message,
to address this issue, multiple changes were made:

  • Add lines recalculation on win_redraw
  • Move prof_buff_t struct to header file so its lines could be externally changed
  • Call win_redraw once overflow is detected: it allows to recalculate sizes in lines and apply changes to the buffer
Prior commit (6ad8a190) did not properly handle overflow by long (9000 lines) message, to address this issue, multiple changes were made: - Add lines recalculation on win_redraw - Move `prof_buff_t` struct to header file so its lines could be externally changed - Call win_redraw once overflow is detected: it allows to recalculate sizes in lines and apply changes to the buffer
jabber.developer added 1 commit 2025-10-08 10:55:55 +00:00
fix(scroll): handle edge case of extremely long messages
Some checks failed
CI Code / Check spelling (pull_request) Successful in 19s
CI Code / Check coding style (pull_request) Failing after 34s
CI Code / Linux (arch) (pull_request) Has been cancelled
CI Code / Linux (debian) (pull_request) Has been cancelled
CI Code / Linux (ubuntu) (pull_request) Has been cancelled
7c3f461677
Prior commit (6ad8a190) did not properly handle overflow by long (9000 lines) message,
to address this issue, multiple changes were made:
- Add lines recalculation on win_redraw
- Move `prof_buff_t` struct to header file so its lines could be externally changed
- Call win_redraw once overflow is detected: it allows to recalculate sizes in lines and apply changes to the buffer
jabber.developer force-pushed fix/buffer-cleanup from 7c3f461677 to fac1e224bc 2025-10-08 11:00:49 +00:00 Compare
jabber.developer manually merged commit fac1e224bc into master 2025-10-08 11:21:47 +00:00
Sign in to join this conversation.
No description provided.