tweaks: use the variable that suits 'END' better

master
Benno Schulenberg 2020-03-05 12:22:20 +01:00
parent 42fde1cbc6
commit 2288abcd49
1 changed files with 3 additions and 3 deletions

View File

@ -779,7 +779,7 @@ void do_redo(void)
return; return;
case COUPLE_END: case COUPLE_END:
redidmsg = u->strdata; redidmsg = u->strdata;
goto_line_posx(u->head_lineno, u->head_x); goto_line_posx(u->tail_lineno, u->tail_x);
adjust_viewport(STATIONARY); adjust_viewport(STATIONARY);
break; break;
case INDENT: case INDENT:
@ -1355,8 +1355,8 @@ void update_undo(undo_type action)
case COUPLE_BEGIN: case COUPLE_BEGIN:
break; break;
case COUPLE_END: case COUPLE_END:
u->head_lineno = openfile->current->lineno; u->tail_lineno = openfile->current->lineno;
u->head_x = openfile->current_x; u->tail_x = openfile->current_x;
break; break;
default: default:
die("Bad undo type -- please report a bug\n"); die("Bad undo type -- please report a bug\n");