fix [#34905] Text editor: replacing matches by empty string not allowed

This commit is contained in:
Campbell Barton 2013-04-08 01:31:41 +00:00
parent 634dfcdecc
commit 594eb6218c

@ -2907,7 +2907,7 @@ static int text_find_and_replace(bContext *C, wmOperator *op, short mode)
int found = 0;
char *tmp;
if (!st->findstr[0] || (mode == TEXT_REPLACE && !st->replacestr[0]))
if (!st->findstr[0])
return OPERATOR_CANCELLED;
flags = st->flags;