id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
69	"savannah: Bad regexp search in editor ("" $"")"	bilboq		"Original: http://savannah.gnu.org/bugs/?19757

||Submitted by:||Martin Petricek <bilboq>||Submitted on:||Mon 30 Apr 2007 03:20:29 PM UTC||
||Category:||Editor||Severity:||3 - Normal||
||Status:||Confirmed||Privacy:||Public||
||Assigned to:||Pavel Tsekov <ptsekov>||Open/Closed:||Open||
||Release:||current (CVS or snapshot)||Operating System:||GNU/Linux||

Original submission:
{{{
When I used Command -> Find file and entered "" $"" (space and a 
dollar, meaning one space character at end of line, regular 
expression and case sensitivity is both checked), I find many lines 
in many files. However, when I enter one of the files, move to the 
start of the file and search for the same expression "" $"" using F7 
(""regular expression"" checkbox is checked, rest is unchecked), 
nothing is found (""Search string not found""). When I move to the 
line where the space was found by ""Find file"" the space at end of 
line is there.

To reproduce, file with lines like:

""a word ""
""another ""
""another ""

may be used (without the quotation marks of course, the spaces at 
end of lines are important) 
}}}

Comment 1 by Pavel Tsekov <ptsekov> at Wed 02 May 2007 11:53:05 AM UTC:
{{{
If you are building MC from source you can apply the attached patch.
 I am working on a patch to fix both this issue and the 1024 
characters line limit described in bug #19329. The final patch may 
or may not include the attached patch, so this is an interim 
solution.

(file #12664)
}}}

Comment 2 by Pavel Tsekov <ptsekov> at Wed 02 May 2007 02:35:49 PM UTC:
{{{
In fact the code dealing with RE in the editor is pretty bizzare.. I
rewrite would be necessary.
}}}
"	defect	closed	major	4.7	mcedit		fixed					no branch	
