tweaks: reshuffle a condition, for compacter code
Этот коммит содержится в:
родитель
f2d89cb3bc
Коммит
abcdd6605c
14
src/text.c
14
src/text.c
@ -2129,14 +2129,12 @@ void do_justify(bool full_justify)
|
|||||||
|
|
||||||
add_undo(COUPLE_END, "justification");
|
add_undo(COUPLE_END, "justification");
|
||||||
|
|
||||||
/* If we justified marked text, restore mark or cursor position. */
|
/* After justifying a backward-marked text, swap mark and cursor. */
|
||||||
if (openfile->mark) {
|
if (openfile->mark && !right_side_up) {
|
||||||
if (!right_side_up) {
|
openfile->mark = openfile->current;
|
||||||
openfile->mark = openfile->current;
|
openfile->mark_x = openfile->current_x;
|
||||||
openfile->mark_x = openfile->current_x;
|
openfile->current = line_from_number(was_top_lineno);
|
||||||
openfile->current = line_from_number(was_top_lineno);
|
openfile->current_x = was_top_x;
|
||||||
openfile->current_x = was_top_x;
|
|
||||||
}
|
|
||||||
update_undo(COUPLE_END);
|
update_undo(COUPLE_END);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user