linuxmint / xed

X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
GNU General Public License v2.0
454 stars 85 forks source link

Search is broken when same strings of text overlap #652

Open osowiecki opened 2 months ago

osowiecki commented 2 months ago
 * Xed version (xed --version) 3.6.6
 * Distribution -Linuxmint
Description:    Linux Mint 22
Release:    22
Codename:   wilma

Issue

Search for "AGTCCCTCAAG" in XED. It will fail to find "AGTCCCTCAAG" in "AGTCCCTCAAGTCCCTCAAG". This is also broken in latest Firefox...

Steps to reproduce

Substring: 'AGTCCCTCAAG (forward) (length: 11)' Occurs 2 times forward in the target sequence Forward occurrence in reference sequence: 1 Reversed occurrence in reference sequence: 0 Total occurrences in reference sequence: 1 Unmasked target sequence: AGTCCCTCAAGTCCCTCAAGCCGCCACCGCCGCC Unmasked target sequence: AGTCCCTCA AGTCCCTCAAGCCGCCACCGCCGCC Masked target sequence: TCCCTCAAGCCGCCACCGCCGCC Unmasked reference sequence: AGTCCCTCAAGT Masked reference sequence: T

Expected behaviour

Find "AGTCCCTCAAG" twice

Other information