Bug 169823

Summary: found text is highighted off-by-one while searching backwards in mcview
Product: [Fedora] Fedora Reporter: Radek Bíba <rbiba>
Component: mcAssignee: Jindrich Novy <jnovy>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4CC: leonard-rh-bugzilla, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 07:58:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radek Bíba 2005-10-04 07:43:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
mcview has an issue with searching backwards, please see Steps to Reproduce

Version-Release number of selected component (if applicable):
mc-4.6.1a-0.12.FC4

How reproducible:
Always

Steps to Reproduce:
1. e.g. mcview /etc/services (or launch mc, go to /etc and view file services)
2. press / to open the search dialog
3. type e.g. ftp and press enter to start searching
4. press n to jump to another occurrence of string ftp
5. press ? to open the backward search dialog, ftp is prefilled
6. press enter to start searching backwards
7. see what's highlighted
  

Actual Results:  the line with the matching substring is this one:
ftp-data        20/tcp
but this appears:
tp-data 20/tcp
where tp- is highighted (and the two tabulators are 'eaten' into one space)

Expected Results:  string ftp is highigted, in this example, and nothing other is eaten

Additional info:

Comment 1 Leonard den Ottolander 2005-10-04 21:07:24 UTC
Patch committed upstream. Thanks.


Comment 2 Jindrich Novy 2005-10-05 07:58:19 UTC
Ok, closing UPSTREAM then.