justify: when the cursor is at the left edge, keep it there
Only when the endpoint of the selection is actually IN a leading part, then it should be advanced to include the whole leading part, so that the succeeding paragraph will get the proper first-line indentation.
Этот коммит содержится в:
родитель
e209686835
Коммит
e247be69bf
@ -1808,7 +1808,7 @@ void do_justify(bool full_justify)
|
|||||||
fore_length = quot_len + indent_length(endline->data + quot_len);
|
fore_length = quot_len + indent_length(endline->data + quot_len);
|
||||||
|
|
||||||
/* When the region ends IN the lead, take the whole lead. */
|
/* When the region ends IN the lead, take the whole lead. */
|
||||||
if (end_x < fore_length)
|
if (0 < end_x && end_x < fore_length)
|
||||||
end_x = fore_length;
|
end_x = fore_length;
|
||||||
|
|
||||||
/* Include preceding and subsequent whitespace into the marked region. */
|
/* Include preceding and subsequent whitespace into the marked region. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user