tweaks: adjust some whitespace, reshuffle two ifs, and remove two braces
parent
a9f7277b1b
commit
5c07a747bb
|
@ -120,7 +120,7 @@ void do_delete(void)
|
|||
zap_text();
|
||||
else
|
||||
#endif
|
||||
do_deletion(DEL);
|
||||
do_deletion(DEL);
|
||||
}
|
||||
|
||||
/* Backspace over one character. That is, move the cursor left one
|
||||
|
@ -132,7 +132,7 @@ void do_backspace(void)
|
|||
zap_text();
|
||||
else
|
||||
#endif
|
||||
if (openfile->current != openfile->filetop || openfile->current_x > 0) {
|
||||
if (openfile->current_x > 0 || openfile->current != openfile->filetop) {
|
||||
do_left();
|
||||
do_deletion(BACK);
|
||||
}
|
||||
|
|
|
@ -1734,7 +1734,6 @@ void inject(char *burst, size_t count)
|
|||
if (!refresh_needed)
|
||||
check_the_multis(openfile->current);
|
||||
#endif
|
||||
|
||||
if (!refresh_needed)
|
||||
update_line(openfile->current, openfile->current_x);
|
||||
}
|
||||
|
|
|
@ -1062,10 +1062,9 @@ bool execute_command(const char *command)
|
|||
else
|
||||
read_file(stream, 0, "pipe", TRUE);
|
||||
|
||||
if (should_pipe && !ISSET(MULTIBUFFER)) {
|
||||
if (should_pipe && !ISSET(MULTIBUFFER))
|
||||
/* TRANSLATORS: The next two go with Undid/Redid messages. */
|
||||
add_undo(COUPLE_END, N_("filtering"));
|
||||
}
|
||||
|
||||
/* Wait for the external command (and possibly data sender) to terminate. */
|
||||
wait(NULL);
|
||||
|
@ -1223,10 +1222,10 @@ void add_undo(undo_type action, const char *message)
|
|||
}
|
||||
break;
|
||||
case PASTE:
|
||||
if (openfile->current == openfile->filebot)
|
||||
u->xflags |= WAS_FINAL_LINE;
|
||||
u->cutbuffer = copy_buffer(cutbuffer);
|
||||
u->lineno += cutbottom->lineno - cutbuffer->lineno;
|
||||
if (openfile->current == openfile->filebot)
|
||||
u->xflags |= WAS_FINAL_LINE;
|
||||
break;
|
||||
case INSERT:
|
||||
if (openfile->current == openfile->filebot)
|
||||
|
|
Loading…
Reference in New Issue