https://gitlab.synchro.net/main/sbbs/-/commit/731a2bc453085957a12df3e6
Modified Files:
src/sbbs3/getstr.cpp
Log Message:
getstr: word-wrap no longer loses the wrapped word in the message editor
Typing past the right margin in the internal message editor moved the
partial word to the next line, but the cursor landed at the start of it,
so the keys typed next overwrote the word ("word11 word12" became
"word12"), for ASCII and UTF-8 text alike.
Since bc37406b8b (2026-12-05) the editor always passes getstr() the
cursor's position with K_USEOFFSET, and after a word-wrap that position
(column 0 of the new line) was applied to the line holding the carried
text. The offset is now taken as an offset into the caller's string,
which follows the word-wrapped text.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net