tweaks: elide an unneeded call of strlen()
Этот коммит содержится в:
родитель
eea3e1f0b2
Коммит
93fa53c3e8
@ -495,7 +495,7 @@ void do_snip(bool marked, bool until_eof, bool append)
|
|||||||
/* When not at the end of a line, move the rest of this line into
|
/* When not at the end of a line, move the rest of this line into
|
||||||
* the cutbuffer. Otherwise, when not at the end of the buffer,
|
* the cutbuffer. Otherwise, when not at the end of the buffer,
|
||||||
* move just the "line separator" into the cutbuffer. */
|
* move just the "line separator" into the cutbuffer. */
|
||||||
if (openfile->current_x < strlen(openfile->current->data))
|
if (line->data[openfile->current_x] != '\0')
|
||||||
extract_segment(line, openfile->current_x, line, strlen(line->data));
|
extract_segment(line, openfile->current_x, line, strlen(line->data));
|
||||||
else if (openfile->current != openfile->filebot) {
|
else if (openfile->current != openfile->filebot) {
|
||||||
extract_segment(line, openfile->current_x, line->next, 0);
|
extract_segment(line, openfile->current_x, line->next, 0);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user