undo: don't try to copy a string that doesn't exist
This fixes https://savannah.gnu.org/bugs/?57051.
Bug existed since commit d256d0cb
from earlier today.
master
parent
ba79602281
commit
2656f543f4
|
@ -1226,6 +1226,7 @@ void add_undo(undo_type action, const char *message)
|
||||||
u->lineno += cutbottom->lineno - cutbuffer->lineno;
|
u->lineno += cutbottom->lineno - cutbuffer->lineno;
|
||||||
break;
|
break;
|
||||||
case INSERT:
|
case INSERT:
|
||||||
|
break;
|
||||||
case COUPLE_BEGIN:
|
case COUPLE_BEGIN:
|
||||||
u->mark_begin_lineno = openfile->current_y;
|
u->mark_begin_lineno = openfile->current_y;
|
||||||
case COUPLE_END:
|
case COUPLE_END:
|
||||||
|
|
Loading…
Reference in New Issue