Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109080391
D25564.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25564.diff
View Options
Index: head/sys/dev/vt/vt_core.c
===================================================================
--- head/sys/dev/vt/vt_core.c
+++ head/sys/dev/vt/vt_core.c
@@ -454,7 +454,7 @@
return (0);
}
-/* vt_late_window_switch will done VT switching for regular case. */
+/* vt_late_window_switch will do VT switching for regular case. */
static int
vt_late_window_switch(struct vt_window *vw)
{
@@ -2326,12 +2326,11 @@
case CONS_HISTORY:
if (*(int *)data < 0)
return EINVAL;
- if (*(int *)data != vd->vd_curwindow->vw_buf.vb_history_size)
- vtbuf_sethistory_size(&vd->vd_curwindow->vw_buf,
- *(int *)data);
+ if (*(int *)data != vw->vw_buf.vb_history_size)
+ vtbuf_sethistory_size(&vw->vw_buf, *(int *)data);
return (0);
case CONS_CLRHIST:
- vtbuf_clearhistory(&vd->vd_curwindow->vw_buf);
+ vtbuf_clearhistory(&vw->vw_buf);
/*
* Invalidate the entire visible window; it is not guaranteed
* that this operation will be immediately followed by a scroll
@@ -2339,9 +2338,11 @@
* to remain visible.
*/
VT_LOCK(vd);
- vd->vd_flags |= VDF_INVALID;
+ if (vw == vd->vd_curwindow) {
+ vd->vd_flags |= VDF_INVALID;
+ vt_resume_flush_timer(vw, 0);
+ }
VT_UNLOCK(vd);
- vt_resume_flush_timer(vd->vd_curwindow, 0);
return (0);
case CONS_GET:
/* XXX */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 1:14 PM (4 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16383635
Default Alt Text
D25564.diff (1 KB)
Attached To
Mode
D25564: vt(4): CONS_HISTORY/CONS_CLRHIST should operate on issuing terminal
Attached
Detach File
Event Timeline
Log In to Comment