WIP: apps/ircc: fix text formatting issues (#376) #392

Draft
SumitKumar-17 wants to merge 3 commits from SumitKumar-17/kolibrios:fix/376-irc-text-formatting into main
pull from: SumitKumar-17/kolibrios:fix/376-irc-text-formatting
3 Commits
Author SHA1 Message Date
Burer bdd00201c8 apps/ircc: drop color handling from text_nextline (line scanner only)
Test PR / Build (es_ES) (pull_request) Successful in 1m50s
Test PR / Build (en_US) (pull_request) Successful in 1m58s
Test PR / Build (ru_RU) (pull_request) Successful in 2m4s
text_insert_newlines already inserts soft newlines into the buffer, so
text_nextline normally just finds them; its column-count path only fires
on a spaceless line wider than the textbox. Handling mIRC colors there -
especially in the backward scroll scan - added complexity for a
negligible edge and desynced forward/backward width. Color skipping
stays in text_insert_newlines (wrapping) and draw_channel_text (render).
2026-07-02 15:29:22 +03:00
Burer 9ebd6fa97d apps/ircc: refactor color-arg skipping, fix width/render desync
Test PR / Build (en_US) (pull_request) Successful in 1m53s
Test PR / Build (es_ES) (pull_request) Successful in 2m0s
Test PR / Build (ru_RU) (pull_request) Successful in 1m50s
- Factor duplicated .skip_color from text_insert_newlines and
  text_nextline into a shared skip_mirc_color_args matching the
  renderer's dec_to_esi byte span.
- Guard text_nextline backward scans (DF check) so forward-parsing
  \x03 args doesn't corrupt esi during scroll-up.
- Document the silent jmp .line that stops .no_colors from eating
  the byte after \x03N,N.
- Document the .color_reset branch for bare \x03.
2026-07-02 11:55:42 +00:00
SumitKumar-17 262f3adb84 ircc: fix text formatting issues (#376)
fix leading whitespaces being trimmed ,formatting clear chars ignored,
bold/italic/other control bytes counted toward line width in
text_insert_newlines and text_nextline, causing incorrect wrapping,
leading spaces stripped from PRIVMSG content
2026-07-02 11:55:42 +00:00