Long-press highlights randomly large chunk of text

I’ve noticed that long-pressing in a field often highlights what seems like a randomly large amount of text (could be a few words or many lines). Any reason for this?

Give an example of a field with such a problem. Place the code in a code block.

Sorry, is this what you need? Haven’t done this before. This is the back template of my cloze note type. The issue occurs in fields with a lot of text, which is basically all the fields except Source and Audio.

{{cloze:Front}}

{{#Audio}}
  <hr class="divider">
  <div class="field-label">Audio</div>
  <div style='font-family: "Arial"; font-size: 19px;'>{{Audio}}</div> 

  {{tts cs_CZ voices=Microsoft_Jakub:Audio}} 
{{/Audio}}

{{#Source}}
  <hr class="divider">
  <div class="field-label">Source</div>
  <div class="extra-info">{{Source}}</div>
{{/Source}}

{{#Vocab}}
  <hr class="divider">
  <div class="field-label">Vocab</div>
  <div class="extra-info">{{Vocab}}</div>
{{/Vocab}}

{{#Extra}}
  <hr class="divider">
  <div class="field-label">Extra</div>
  <div class="extra-info">{{Extra}}</div>
{{/Extra}}

{{#AI}}
  <hr class="divider">
  <div class="field-label">AI</div>
  <div class="extra-info">{{AI}}</div>
{{/AI}}



I think what we’d need to see is the text in that field in the editor – since that’s where it sounds like you’re seeing this behavior. You should also tell us where in that text you’re long-pressing, and give us a screenshot showing what is selected when you do.

Also go to Settings > About > Copy debug info and paste that here when you respond.

Here’s the copy debug info:

AnkiDroid Version = 2.25.1 (0c0a878221806c44f72e5d0259b290028661b567)

Backend Version = 0.1.68-anki26.05 (26.05 e64c6b1aee3e8d668fb8bbe084beada8e070d985)

Android Version = 17 (SDK 37)

ProductFlavor = play

Device Info = Google | google | komodo | komodo | Pixel 9 Pro XL | komodo

WebView Info = [com.google.android.webview | 801003603]: Mozilla/5.0 (Linux; Android 17; Pixel 9 Pro XL Build/CP3A.260905.009; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Mobile Safari/537.36

ACRA UUID = b4eecdc5-dd1f-42c5-a9fc-6bd86a3996e1

FSRS = 5.2.0 (Enabled: true)

Crash Reports Enabled = true

And here’s a screenshot. I long-pressed on the word “locative” in an Extra field.

Can you select all the text in the field and copy-paste it in a code block here?

Miloš > Miloše in gen (Ma soft, like muž > může)
(Note that rule for multi-word name endings applies to dative & locative, not genitive, JN p37)

on > něm in loc
ona > ní

Seznam
&nbsp; • Vyprávět příběh, tell/narrate a story

<b>Ono declined</b> 
ho/něj (stressed jeho)
mu/němu (stressed jemu)
ho/něj
něm
jím/ním

<b>loc pronouns:</b>
mně
tobě
něm/ní 
nás
vás 
nich

Note that if I open this note again, the first long-press on the same word might highlight a different chunk of text.

I can’t reproduce the issue.

What happens if you delete all the text and type it again by hand? There might be some invisible characters there that make AnkiDroid think the chunk is a single word.

Does this happen in other apps?

Have not noticed it in other apps, but to be honest I’m constantly using Anki so maybe I just notice it there.

I have about 9000 cards, 6000 of them mature. This issue happens all the time. But not in any predictable way that I can figure out. It happens (or maybe it’s just more noticeable) in fields with a lot of text, so retyping by hand will be a chore. But I can try that and see what happens.

Same problem after retyping all the text in the field.

Try downloading the parallel A version of an older version of AnkiDroid from Releases · ankidroid/Anki-Android · GitHub. Something like 2.22 or a version which you remember was working fine.

The parallel A app should install as a separate app and won’t interfere with your actual collection as long as you don’t sync it.

Either import one of your decks or make test notes.

If it works then we know that it’s a regression in AnkiDroid. Otherwise, try the latest alpha version of parallel A.

Ok, will give it a try. Found AnkiDroid-2.22alpha2.parallel.A.apk

99.2 MBJul 5, 2025

Made a test card in 2.22. Seeing the same issue.

Hi, try double tapping words instead of long pressing.

Another idea is to try another keyboard like SwiftKey.

Yes, double tapping is an option. However there’s an issue with that too. On the first tap in a field the display often jumps up instantly (I think to align the bottom of the field to the top of the keyboard, or the top of the field to the top of the screen). The second tap can be a long-press.

Sometimes, instead of jumping up instantly, the display slides up, which is a better look. Often there doesn’t need to be any movement at all (eg when a tap brings up the keyboard but does not obscure the word that was tapped) – but still the screen jumps.