Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115912197
D34339.id103098.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
715 B
Referenced Files
None
Subscribers
None
D34339.id103098.diff
View Options
Index: sys/dev/vt/vt_buf.c
===================================================================
--- sys/dev/vt/vt_buf.c
+++ sys/dev/vt/vt_buf.c
@@ -819,12 +819,17 @@
/* No space - word extends to beginning of line. */
if (i == -1)
vb->vb_mark_start.tp_col = 0;
- for (i = col; i < vb->vb_scr_size.tp_col; i ++) {
+
+ for (i = col; i < vb->vb_scr_size.tp_col; i++) {
if (TCHAR_CHARACTER(r[i]) == ' ') {
vb->vb_mark_end.tp_col = i;
break;
}
}
+ /* No space - word extends to end of line. */
+ if (i == vb->vb_scr_size.tp_col)
+ vb->vb_mark_end.tp_col = i;
+
if (vb->vb_mark_start.tp_col > vb->vb_mark_end.tp_col)
vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 8:05 AM (17 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17877077
Default Alt Text
D34339.id103098.diff (715 B)
Attached To
Mode
D34339: vt: fix double-click word selection for last word on line
Attached
Detach File
Event Timeline
Log In to Comment