oops: use the correct condition for checking the last line will change
Only when the replacement string (in 'answer') is non-empty will the last line be changed and thus possibly a magic lined added.master
parent
0f4bb64eaf
commit
90f6f25e31
|
@ -1043,7 +1043,7 @@ void add_undo(undo_type action, const char *message)
|
||||||
break;
|
break;
|
||||||
case REPLACE:
|
case REPLACE:
|
||||||
u->strdata = copy_of(thisline->data);
|
u->strdata = copy_of(thisline->data);
|
||||||
if (thisline == openfile->filebot && u->strdata[0] != '\0')
|
if (thisline == openfile->filebot && answer[0] != '\0')
|
||||||
u->xflags |= INCLUDED_LAST_LINE;
|
u->xflags |= INCLUDED_LAST_LINE;
|
||||||
break;
|
break;
|
||||||
#ifdef ENABLE_WRAPPING
|
#ifdef ENABLE_WRAPPING
|
||||||
|
|
Loading…
Reference in New Issue