Skip to content

Bug: Text duplication/corruption when tapping on words to position cursor #2842

Description

@raseldey145

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Describe the bug

When tapping or clicking directly on an existing word in the editor (HTML/CSS) to fix a typo or reposition the cursor, the text gets corrupted, duplicated, or merged unexpectedly (e.g., typing or editing creates overlapping words like ttext-align or colocolorbrckblack).

Steps to reproduce

  1. Open any HTML or CSS file in Acode.
  2. Type some code.
  3. Tap/touch directly on an already typed word to move the cursor or correct a typo.
  4. Try editing or typing new characters.
  5. Observed: Text gets duplicated, corrupted, or attached together erroneously.

Expected behavior

The cursor should position cleanly on the tapped word/character without corrupting or duplicating the existing text.

Environment

  • App Version: 1.13.1 (or 1.13.3)
  • Source: F-Droid / GitHub
  • Device: Android
  • Keyboard: Gboard (or default keyboard)

Additional context

This seems to be an issue with touch selection/cursor positioning focus in the Ace Editor engine on Android touch devices.

Screenrecording_20260901_154754.mp4

Environment

Why i face the problem?

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions