tweaks: reshuffle an assignment, to be able to return earlier
parent
3346c5395e
commit
99d155d80f
|
@ -1711,9 +1711,12 @@ void do_input(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shortcut == NULL)
|
if (shortcut == NULL) {
|
||||||
pletion_line = NULL;
|
pletion_line = NULL;
|
||||||
else {
|
keep_cutbuffer = FALSE;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ISSET(VIEW_MODE) && !okay_for_view(shortcut)) {
|
if (ISSET(VIEW_MODE) && !okay_for_view(shortcut)) {
|
||||||
print_view_warning();
|
print_view_warning();
|
||||||
return;
|
return;
|
||||||
|
@ -1783,7 +1786,6 @@ void do_input(void)
|
||||||
shortcut->func == do_backspace))
|
shortcut->func == do_backspace))
|
||||||
update_line(openfile->current, openfile->current_x);
|
update_line(openfile->current, openfile->current_x);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* If we aren't cutting or copying text, and the key wasn't a toggle,
|
/* If we aren't cutting or copying text, and the key wasn't a toggle,
|
||||||
* blow away the text in the cutbuffer upon the next cutting action. */
|
* blow away the text in the cutbuffer upon the next cutting action. */
|
||||||
|
|
Loading…
Reference in New Issue