diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-01-05 16:52:44 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-01-05 16:52:44 +0000 |
commit | 49cfbeab2d51f663549f1c30b5d32c4f269bcc34 (patch) | |
tree | e1158bb6ddd61d9da84de757e161aef22ec4798f /sys/dev/syscons/scmouse.c | |
parent | 7d08d56b179fcf0f73a476d49e438d7c5bf6a170 (diff) | |
download | FreeBSD-src-49cfbeab2d51f663549f1c30b5d32c4f269bcc34.zip FreeBSD-src-49cfbeab2d51f663549f1c30b5d32c4f269bcc34.tar.gz |
In the word selection mode don't append newline if the word ends at the
screen boundary.
Diffstat (limited to 'sys/dev/syscons/scmouse.c')
-rw-r--r-- | sys/dev/syscons/scmouse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/syscons/scmouse.c b/sys/dev/syscons/scmouse.c index 482b86f..568bafd 100644 --- a/sys/dev/syscons/scmouse.c +++ b/sys/dev/syscons/scmouse.c @@ -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'; } } |