Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Search highlight (red text marker) extends to entire field when editing searched word #64

Closed
joshirio opened this issue Aug 20, 2018 · 1 comment
Labels

Comments

@joshirio
Copy link
Collaborator

2018-08-20_20-46

Steps to reproduce:

  1. search for some text (like "ea")
  2. edit the word containing the searched text (like "leave" -> "leawe")
  3. go to next search result (next toolbar button)
  4. now the entire field is marked in red
@joshirio joshirio added the bug label Aug 20, 2018
@joshirio
Copy link
Collaborator Author

joshirio commented Aug 24, 2018

Looks like this is a Qt bug because Symphytum is basically using the same code listed as example to highlight searched characters in a QTextEdit https://doc.qt.io/qt-5/richtext-common-tasks.html#finding-text

while (!highlightCursor.isNull() && !highlightCursor.atEnd()) {

joshirio added a commit to joshirio/passiflora that referenced this issue Aug 24, 2018
…ults, fixes giowck#64

Signed-off-by: Oirio Joshi <joshirio@protonmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant