URL: <http://savannah.gnu.org/bugs/?19329>
Summary: Search and replace misbehavior with regexps and lines>=1024 chars Project: GNU Midnight Commander Submitted by: bilboq Submitted on: Friday 03/16/2007 at 23:01 Category: Editor Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: current (CVS or snapshot) Operating System: GNU/Linux _______________________________________________________ Details: 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). _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?19329> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel