In the word selection mode don't append newline if the word ends at the
screen boundary.
This commit is contained in:
parent
97d35cf5f8
commit
42b841a9c9
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user