diff --git a/src/text.c b/src/text.c index 87da9925..f9384759 100644 --- a/src/text.c +++ b/src/text.c @@ -1431,14 +1431,8 @@ fprintf(stderr, " >> Updating... action = %d, openfile->last_action = %d, openf u->lineno = openfile->current->lineno; break; case INSERT: - /* Store the number of lines (plus one) of the insertion. */ u->mark_begin_lineno = openfile->current->lineno; - /* When the insertion contains no newline, store the adjusted - * x position; otherwise, store the length of the last line. */ - if (openfile->fileage == openfile->filebot) - u->mark_begin_x = openfile->current_x; - else - u->mark_begin_x = strlen(openfile->filebot->data); + u->mark_begin_x = openfile->current_x; break; case ENTER: u->strdata = mallocstrcpy(NULL, openfile->current->data);