tweaks: remove an unneeded condition
The 'prepend_wrap' flag gets set to TRUE only when there is a next line, and it can remain TRUE only when the cursor stays on the current line.
Этот коммит содержится в:
родитель
e8f69e40d1
Коммит
ec4883b6a9
@ -1466,8 +1466,7 @@ bool do_wrap(void)
|
|||||||
/* We prepend the wrapped text to the next line, if the prepend_wrap
|
/* We prepend the wrapped text to the next line, if the prepend_wrap
|
||||||
* flag is set, there is a next line, and prepending would not make
|
* flag is set, there is a next line, and prepending would not make
|
||||||
* the line too long. */
|
* the line too long. */
|
||||||
if (prepend_wrap && line != openfile->filebot &&
|
if (prepend_wrap && rest_length + strlen(line->next->data) <= wrap_at) {
|
||||||
rest_length + strlen(line->next->data) <= wrap_at) {
|
|
||||||
const char *tail = remainder + move_mbleft(remainder, rest_length);
|
const char *tail = remainder + move_mbleft(remainder, rest_length);
|
||||||
|
|
||||||
/* Go to the end of the line. */
|
/* Go to the end of the line. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user