loop-uh
d3f7f7cde4
Keep the caret where it was when a block is reopened
...
Pressing enter back and forth made the caret wander and never settle
where the split had been made. The trip out of the field was fixed
already — an offset that counts an emoji as one character gets its
second unit back — but the trip home was left alone, so a rich offset
counting two units per emoji was handed to the field as a caret
position and landed one character further right per emoji.
MapRichTextOffsetToEditorOffset only knows about the replacement list,
and that list is built from formulas, so it passes emoji through
untouched exactly like its forward twin did. Subtract the surrogate
pairs that precede the offset, mirroring ExpandOverSurrogatePairs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:31:06 +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-28 14:26:28 +03:00
boxes
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
calls
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
chat_helpers
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +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-28 14:26:28 +03:00
countries
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
data
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
dialogs
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
editor
Fix build with MSVC.
2026-07-28 12:28:16 +04:00
export
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +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-28 14:26:28 +03:00
info
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
inline_bots
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
intro
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
iv
Keep the caret where it was when a block is reopened
2026-07-28 14:31:06 +03:00
lang
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-25 17:07:59 +03:00
layout
Moved out highlight scroll logic from sections to single place.
2026-03-30 11:01:56 +03:00
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-28 14:26:28 +03:00
menu
Removed unused style includes from sources.
2026-07-27 14:04:36 +03:00
mtproto
Salt the logged SNI hash, because unsalted it named the domain
2026-07-26 19:15:13 +03:00
overview
Split per-consumer blocks out of big style files.
2026-07-27 14:04:37 +03:00
passport
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
payments
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
platform
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
poll
[poll-create] Extracted poll answer link box helper into shared module.
2026-06-09 14:28:12 +04:00
profile
Removed unused style includes from sources.
2026-07-27 14:04:36 +03:00
settings
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +03:00
statistics
Removed unused style includes from sources.
2026-07-27 14:04:36 +03: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
Fix tde2e include the way tdlib itself uses it
2025-05-03 03:09:40 -07:00
test
Fix build with MSVC.
2026-07-28 12:28:16 +04:00
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-28 14:26:28 +03:00
webauthn
Added Windows WebAuthn support via webauthn.dll and libfido2 fallback.
2026-07-28 09:53:53 +03:00
window
Merge remote-tracking branch 'upstream/dev' into dev
2026-07-28 14:26:28 +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-28 14:26:28 +03:00
mainwidget.h
Restructure mtproto ownership
2026-07-08 00:07:46 +03:00
mainwindow.cpp
Removed unused style includes from sources.
2026-07-27 14:04:36 +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
Added accounts list to tray menu on macOS.
2026-02-28 19:07:08 +04:00
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
Added accounts list to tray menu on macOS.
2026-02-28 19:07:08 +04:00
tray_accounts_menu_dummy.cpp
Added accounts list to tray menu on macOS.
2026-02-28 19:07:08 +04:00