ZaStoGram_desktop/Telegram
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh 90616b15bf Log where a cursor position lands when mapped into article text
Pressing Enter with the cursor right after an emoji moves the emoji
down with the tail, instead of leaving it on the line above. The split
lands one emoji to the left of the cursor.

richOffsetForFieldOffset() converts the field cursor into an offset in
the article text through a list of replacements, and that list is only
ever filled from formulas — see MarkedTextLeafSourceSignature's caller
in iv_editor_text_entities.cpp. An emoji changes length between the two
coordinate systems exactly the same way a formula does: one character in
the field document, two UTF-16 units in the text. Nothing compensates
for it.

The direction fits, the magnitude does not yet: four emoji precede the
cursor in the reported case, so the shortfall should be four units, but
the split moved by two. Rather than guess again, log both offsets, the
text length, the replacement count and what sits on either side of the
landing point.

Temporary diagnostics, capped at 60 lines per run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 00:42:29 +03:00
..
build Merge remote-tracking branch 'upstream/dev' into dev 2026-07-25 17:07:59 +03:00
cmake Merge remote-tracking branch 'upstream/dev' into dev 2026-07-25 17:07:59 +03:00
codegen@1996c7c61e Updated submodules for shared svg icon mask data. 2026-07-20 14:50:30 +03:00
lib_base@82d182a275 Remove no longer used xcb-screensaver library from snap 2026-07-14 12:27:38 +04:00
lib_crl@7a165302fe Update lib_crl and TooManyCooks 2026-07-06 00:37:30 +04:00
lib_lottie@f508c5facc Fork lib_ui and lib_lottie for full frame rate emoji animations 2026-07-11 19:25:37 +03:00
lib_qr@6fdf604614
lib_rpl@c57cccffb0
lib_spellcheck@1f18c1e35b Make InputField menu extension with hooks. 2026-06-23 11:40:19 +04:00
lib_storage@ccdc72548a
lib_tl@aa7791326d Validate that we have enough data in MTPvector. 2026-07-10 15:34:04 +04:00
lib_translate@09c1072622
lib_ui@76505371db Pull in the wordbreak diagnostics from lib_ui 2026-07-26 20:52:16 +03:00
lib_webrtc@52636e86ea
lib_webview@c061402a16 Update submodules. 2026-07-19 12:39:46 +04:00
Resources Name the camouflage answer instead of blaming the digest 2026-07-26 00:15:27 +03:00
shaders Fixed invisible small group call videos. 2026-06-22 11:51:49 +03:00
SourceFiles Log where a cursor position lands when mapped into article text 2026-07-27 00:42:29 +03:00
Telegram
ThirdParty Fix possible crash in formula parsing. 2026-07-21 13:47:26 +04:00
CMakeLists.txt Merge remote-tracking branch 'upstream/dev' into dev 2026-07-25 17:07:59 +03:00
configure.bat
configure.py
configure.sh
create.bat
Telegram.plist