summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-02-16 13:58:54 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-02-16 13:58:54 +0300
commit65783c3a344eaf555e46ab77dc9f3603cc07ce48 (patch)
tree8a34286945f40bb8f9917332dc60532c4eab2661
parent8543dfc47441a07bf97a24a6ddd5063515d05763 (diff)
fixes #4870 (tabSRMM: встроенный журнал в групчатах съедает первую букву после квадратной скобки)
-rw-r--r--src/mir_app/src/chat_loginfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/chat_loginfo.cpp b/src/mir_app/src/chat_loginfo.cpp
index f1ba4f97d9..6857917dfa 100644
--- a/src/mir_app/src/chat_loginfo.cpp
+++ b/src/mir_app/src/chat_loginfo.cpp
@@ -126,7 +126,10 @@ void LOGINFO::write(RtfChatLogStreamData *streamData, bool simpleMode, CMStringA
if (!streamData->bStripFormat)
buf.Append(bEnable ? "\\ul" : "\\ul0");
}
- else buf.AppendChar('[');
+ else {
+ buf.AppendChar('[');
+ line--; // it was moved ahead previously, remember?
+ }
}
else if (*line == '\t' && !streamData->bStripFormat) {
buf.Append("\\tab ");