tweaks: remove a superfluous assignment, and reshuffle a call
parent
4f67f364bc
commit
7cd2a7da7c
|
@ -525,8 +525,6 @@ void do_undo(void)
|
||||||
if (u->type <= REPLACE)
|
if (u->type <= REPLACE)
|
||||||
line = line_from_number(u->tail_lineno);
|
line = line_from_number(u->tail_lineno);
|
||||||
|
|
||||||
openfile->current_x = u->head_x;
|
|
||||||
|
|
||||||
switch (u->type) {
|
switch (u->type) {
|
||||||
case ADD:
|
case ADD:
|
||||||
/* TRANSLATORS: The next thirteen strings describe actions
|
/* TRANSLATORS: The next thirteen strings describe actions
|
||||||
|
@ -576,10 +574,10 @@ void do_undo(void)
|
||||||
break;
|
break;
|
||||||
case REPLACE:
|
case REPLACE:
|
||||||
undidmsg = _("replacement");
|
undidmsg = _("replacement");
|
||||||
goto_line_posx(u->head_lineno, u->head_x);
|
|
||||||
data = u->strdata;
|
data = u->strdata;
|
||||||
u->strdata = line->data;
|
u->strdata = line->data;
|
||||||
line->data = data;
|
line->data = data;
|
||||||
|
goto_line_posx(u->head_lineno, u->head_x);
|
||||||
break;
|
break;
|
||||||
#ifdef ENABLE_WRAPPING
|
#ifdef ENABLE_WRAPPING
|
||||||
case SPLIT_END:
|
case SPLIT_END:
|
||||||
|
|
Loading…
Reference in New Issue