diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2015-05-10 17:11:04 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2015-05-10 17:11:04 +0000 |
| commit | b1b7114036fc703b499bf2c8022e3f825ea11325 (patch) | |
| tree | 57d145f1891ee023b6511884371dcbc480fd0488 | |
| parent | 53d1c63711343b7dec15f057d75f3cf6fbac28f2 (diff) | |
Notes
| -rw-r--r-- | sys/dev/vt/vt_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index e6603a94736e..ecd5267ee6e3 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -785,7 +785,7 @@ vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c) return (0); case PREV: /* Switch to previous VT. */ - c = (vw->vw_number - 1) % VT_MAXWINDOWS; + c = (vw->vw_number + VT_MAXWINDOWS - 1) % VT_MAXWINDOWS; vw = vd->vd_windows[c]; vt_proc_window_switch(vw); return (0); |
