这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: Selecting text in tilde editor doesn't work properly #4639

@IsaacOscar

Description

@IsaacOscar

Problem description

I'm not sure if this is a problem with tilde itself, but it only happens when using the Termux emulator, and not when using a different terminal and sshing.

Steps to reproduce the behavior.

Open tilde, and write some text. Then select it, e.g.

Image

If you then press backspace, it deletes the text where your cursor was prior to selecting (in this case the 'd' at the end):

Image

Note that double-tapping a word and then pressing backspace does delete the word as expected.

What is the expected behavior?

I expect it to behave the same as when I ssh to my phone from my Desktop (Using Windows Terminal).
After dragging my mouse to select some text:
Image

And then pressing delete, the selected text gets deleted:
Image

System information

Termux Variables:
TERMUX_API_VERSION=0.52.0
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=17716
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c92,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.3
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c92,c257,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:

sources.list

deb https://mirrors.middlendian.com/termux/termux-main stable main

root-repo (sources.list.d/root.list)

deb https://mirrors.middlendian.com/termux/termux-root root stable

x11-repo (sources.list.d/x11.list)

deb https://mirrors.middlendian.com/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
16
Kernel build information:
Linux localhost 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 #1 SMP PREEMPT Wed Mar 12 13:40:07 UTC 2025 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 8a
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a
SUPPORTED_32_BIT_ABIS:
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1001
com.termux.x11 versionCode:15
com.termux.styling versionCode:1000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions