id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
63	savannah: Search and replace misbehavior with regexps and lines>=1024 chars	bilboq		"Original: http://savannah.gnu.org/bugs/?19329

||Submitted by:||Martin Petricek <bilboq>||Submitted on:||Fri 16 Mar 2007 11:01:26 PM UTC||
||Category:||Editor||Severity:||3 - Normal||
||Status:||None||Privacy:||Public||
||Assigned to:||None||Open/Closed:||Open||
||Release:||current (CVS or snapshot)||Operating System:||GNU/Linux||

Original submission:
{{{
When I press F4 in editor and use regexp like ""^something$"", only 
first 1024 chars are considered as ""line"".

How to reproduce:

Create file with a line in format:
x=yyyyyyyyyyyyyy .... yyyyyyyy

(the string x=should be followed by 2000 characters ""y"")

Jump to first char in file and press F4 (Search and replace).
Type ""^x=.*$"" in the search string, leave replacement string blank 
and tick ""Regular expression"" toggle.

This regexp is supposed to replace the mentioned line with nothing 
(i.e. delete it :). Actually, only first 1024 characters of the line
 are deleted, rest of the line remains.

This can lead to file corruption if you do ""replace all without 
prompting"" and notice this bug too late (i.e. after you have saved 
the file).
}}}
"	defect	closed	major	4.7	mcedit		fixed					no branch	
