From 25f116b73a868db6c0bd8d8e7c8fc6f1d2a95d2b Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 10 Sep 2014 11:27:33 +0000 Subject: spelling fixes Submitted by: "Sam Fourman Jr." MFC after: 1 week --- sys/dev/vt/vt_buf.c | 2 +- sys/dev/vt/vt_core.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/vt') diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c index d468173..eb3ba99 100644 --- a/sys/dev/vt/vt_buf.c +++ b/sys/dev/vt/vt_buf.c @@ -321,7 +321,7 @@ vtbuf_copy(struct vt_buf *vb, const term_rect_t *r, const term_pos_t *p2) if (r->tr_begin.tp_row > p2->tp_row && r->tr_begin.tp_col == 0 && r->tr_end.tp_col == vb->vb_scr_size.tp_col && /* Full row. */ (rows + rdiff) == vb->vb_scr_size.tp_row && /* Whole screen. */ - rdiff > 0) { /* Only forward dirrection. Do not eat history. */ + rdiff > 0) { /* Only forward direction. Do not eat history. */ vthistory_addlines(vb, rdiff); } else if (p2->tp_row < p1->tp_row) { /* Handle overlapping copies of line segments. */ diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 3c0c4cf..15f7d1e 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -347,7 +347,7 @@ vt_proc_window_switch(struct vt_window *vw) if (curvw->vw_flags & VWF_VTYLOCK) return (EBUSY); - /* Ask current process permitions to switch away. */ + /* Ask current process permission to switch away. */ if (curvw->vw_smode.mode == VT_PROCESS) { DPRINTF(30, "%s: VT_PROCESS ", __func__); if (vt_proc_alive(curvw) == FALSE) { @@ -1716,7 +1716,7 @@ vt_mouse_event(int type, int x, int y, int event, int cnt, int mlevel) return; buf = malloc(len, M_VT, M_WAITOK | M_ZERO); - /* Request cupy/paste buffer data, no more than `len' */ + /* Request copy/paste buffer data, no more than `len' */ vtbuf_extract_marked(&vd->vd_markedwin->vw_buf, buf, len); -- cgit v1.1