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
..
_other
Self-hosted auto-updates via GitHub releases
2026-07-05 13:25:13 +03:00
api
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
boxes
Open the language box instead of waiting for a list that never came
2026-07-26 22:05:01 +03:00
calls
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
chat_helpers
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
codegen /scheme
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-14 18:46:38 +03:00
core
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
countries
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
data
Include the full MTP::Instance type in passkeys
2026-07-25 19:32:51 +03:00
dialogs
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
editor
Fix possible clamp contract violation.
2026-07-04 16:46:46 +04:00
export
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-14 18:46:38 +03:00
ffmpeg
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
history
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
info
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
inline_bots
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
intro
Ask again for a login token nobody was going to answer
2026-07-26 22:04:54 +03:00
iv
Log where a cursor position lands when mapped into article text
2026-07-27 00:42:29 +03:00
lang
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
layout
main
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
media
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
menu
Moved toggling of mute forever to separate helper.
2026-07-24 17:12:25 +03:00
mtproto
Salt the logged SNI hash, because unsalted it named the domain
2026-07-26 19:15:13 +03:00
overview
Moved video tile scaling off main thread in overview layout.
2026-07-15 13:11:47 +04:00
passport
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
payments
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
platform
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
poll
[poll-create] Extracted poll answer link box helper into shared module.
2026-06-09 14:28:12 +04:00
profile
Removed 114 unused style entries.
2026-05-04 11:32:33 +07:00
settings
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
statistics
Fixed long chart filter labels in statistics.
2026-05-05 10:45:43 +04:00
storage
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
support
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
tde2e
tests
Salt the logged SNI hash, because unsalted it named the domain
2026-07-26 19:15:13 +03:00
ui
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
window
Name the camouflage answer instead of blaming the digest
2026-07-26 00:15:27 +03:00
apiwrap.cpp
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
apiwrap.h
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-14 18:46:38 +03:00
config.h
Self-hosted auto-updates via GitHub releases
2026-07-05 13:25:13 +03:00
logs.cpp
мне лень описывать всё изменения - ОНИ ОГРОМНЫ
2026-07-07 23:05:20 +03:00
logs.h
Add mtproxy logs and proxy statuses; CI->Release
2026-06-28 15:36:15 +03:00
main.cpp
mainwidget.cpp
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-14 18:46:38 +03:00
mainwidget.h
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
mainwindow.cpp
Fixed settings opening under boxes without session.
2026-07-24 17:22:38 +03:00
mainwindow.h
Fixed back from new account intro focusing wrong window.
2026-06-22 11:51:49 +03:00
settings.cpp
[ai] Add -testagent for silent crashes.
2026-07-02 17:49:02 +04:00
settings.h
Make -cleanup stop the running app on uninstall
2026-07-20 23:14:37 +04:00
stdafx.h
Avoid full Telegram target rebuild on version change
2026-06-15 17:05:51 +04:00
tray.cpp
tray.h
tray_accounts_menu.cpp
Added passcode lock check to Dock and Tray account menus.
2026-05-22 09:53:43 +03:00
tray_accounts_menu.h
tray_accounts_menu_dummy.cpp