Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Text Expander/cursor-handling bug

Đang mở
#703 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@LeanBitLab đang làm issue này rồi.

Từ ngày 20/10/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

Start by tracing how Text Expander handles the %cursor% marker and inserts the expansion text; the report names no source files or tests. Reproduce with AB%cursor%CD in Markor, then compare the result after typing x with the expected ABxCD; the issue is done when no extra space appears before the typed character.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Description of the bug

LeanType is seen inserting an unwanted space before the typed character while using %cursor% in Text Expander shortcuts.

This seems to be a LeanType Beta 4.2.9 Text Expander/cursor-handling bug, not a mistake in the shortcut templates. Happens in ChatGPT, Markor, MiXplorer and WhatsApp.

To Reproduce

  1. In Text Expander, create shortcut zzx.
  2. Set its expansion to exactly AB%cursor%CD — no spaces anywhere.
  3. Trigger the expansion in Markor.
  4. Type x.

Expected behavior

The official LeanType repository documents %cursor% as placing the cursor at the specified position. So,

  • Expected result: ABxCD.
  • Obtained result: AB xCD.

App version & Flavor

v4.2.9 beta9 standard

Device Info

  • OnePlus 11 5G
  • OxygenOS Android 14
Ngôn ngữ chính
Kotlin
Star
1k
Fork
59
Merge trung bình
13 giờ 11 phút
Pull request đã merge (30 ngày)
47

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LeanBitLab/LeanType

Tất cả issue của LeanBitLab/LeanType

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.