tweaks: avoid a function call when two plain assignments will do
This commit is contained in:
parent
93fa53c3e8
commit
9ccf85eaa8
1
README
1
README
@ -119,4 +119,3 @@ Bug Reports
|
|||||||
(you will need an account to be able to do so), or send an email
|
(you will need an account to be able to do so), or send an email
|
||||||
to the nano-devel list (no need to subscribe, but mention it if
|
to the nano-devel list (no need to subscribe, but mention it if
|
||||||
you want to be CC'ed on an answer).
|
you want to be CC'ed on an answer).
|
||||||
|
|
||||||
|
|||||||
@ -558,7 +558,8 @@ void do_undo(void)
|
|||||||
* and the nonewlines flag isn't set, do not re-add a newline that
|
* and the nonewlines flag isn't set, do not re-add a newline that
|
||||||
* wasn't actually deleted; just position the cursor. */
|
* wasn't actually deleted; just position the cursor. */
|
||||||
if ((u->xflags & WAS_BACKSPACE_AT_EOF) && !ISSET(NO_NEWLINES)) {
|
if ((u->xflags & WAS_BACKSPACE_AT_EOF) && !ISSET(NO_NEWLINES)) {
|
||||||
goto_line_posx(openfile->filebot->lineno, 0);
|
openfile->current = openfile->filebot;
|
||||||
|
openfile->current_x = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
line->data[u->tail_x] = '\0';
|
line->data[u->tail_x] = '\0';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user