In the word selection mode don't append newline if the word ends at the

screen boundary.
This commit is contained in:
Maxim Sobolev 2002-01-05 16:52:44 +00:00
parent 97d35cf5f8
commit 42b841a9c9

View File

@ -482,6 +482,7 @@ mouse_cut_word(scr_stat *scp)
int eol;
int c;
int j;
int len;
/*
* Because we don't have locale information in the kernel,
@ -525,6 +526,9 @@ mouse_cut_word(scr_stat *scp)
/* copy the found word */
mouse_do_cut(scp, start, end);
len = strlen(cut_buffer);
if (cut_buffer[len - 1] == '\r')
cut_buffer[len - 1] = '\0';
}
}