summaryrefslogtreecommitdiff
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2002-06-09 05:47:28 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2002-06-09 05:47:28 +0000
commitaa788cfe003b0c53a76b1fb2782c50b95c665905 (patch)
tree4f31fc9073ed0abd769fa8bbb17768007717136c /bin/ksh/emacs.c
parentaaee1c091ba0c57cec98797351db4b0862b0bf1f (diff)
knf
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r--bin/ksh/emacs.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index e0643e7ebf0..58536372c92 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.15 2001/07/17 12:39:31 camield Exp $ */
+/* $OpenBSD: emacs.c,v 1.16 2002/06/09 05:47:27 todd Exp $ */
/*
* Emacs-like command line editing and history
@@ -88,7 +88,7 @@ static char *xbp; /* start of visible portion of input buffer */
static char *xlp; /* last char visible on screen */
static int x_adj_ok;
/*
- * we use x_adj_done so that functions can tell
+ * we use x_adj_done so that functions can tell
* whether x_adjust() has been called while they are active.
*/
static int x_adj_done;
@@ -367,7 +367,7 @@ x_emacs(buf, len)
return 0;
f = x_curprefix == -1 ? XFUNC_insert
- : x_tab[x_curprefix][c&CHARMASK];
+ : x_tab[x_curprefix][c&CHARMASK];
if (!(x_ftab[f].xf_flags & XF_PREFIX)
&& x_last_command != XFUNC_set_arg)
@@ -849,7 +849,7 @@ static int x_end_hist(c) int c; { x_load_hist(histptr); return KSTD;}
static int x_prev_com(c) int c; { x_load_hist(x_histp - x_arg); return KSTD;}
static int x_next_com(c) int c; { x_load_hist(x_histp + x_arg); return KSTD;}
-
+
/* Goto a particular history number obtained from argument.
* If no argument is given history 1 is probably not what you
* want so we'll simply go to the oldest one.
@@ -1064,7 +1064,7 @@ x_redraw(limit)
x_adj_ok = 0;
if (limit == -1)
x_e_putc('\n');
- else
+ else
x_e_putc('\r');
x_flush();
if (xbp == xbuf)
@@ -1827,10 +1827,10 @@ do_complete(flags, type)
* x_adjust - redraw the line adjusting starting point etc.
*
* DESCRIPTION:
- * This function is called when we have exceeded the bounds
- * of the edit window. It increments x_adj_done so that
- * functions like x_ins and x_delete know that we have been
- * called and can skip the x_bs() stuff which has already
+ * This function is called when we have exceeded the bounds
+ * of the edit window. It increments x_adj_done so that
+ * functions like x_ins and x_delete know that we have been
+ * called and can skip the x_bs() stuff which has already
* been done by x_redraw.
*
* RETURN VALUE:
@@ -1999,11 +1999,11 @@ x_comment(c)
* x_prev_histword - recover word from prev command
*
* DESCRIPTION:
- * This function recovers the last word from the previous
- * command and inserts it into the current edit line. If a
- * numeric arg is supplied then the n'th word from the
- * start of the previous command is used.
- *
+ * This function recovers the last word from the previous
+ * command and inserts it into the current edit line. If a
+ * numeric arg is supplied then the n'th word from the
+ * start of the previous command is used.
+ *
* Bound to M-.
*
* RETURN VALUE:
@@ -2034,7 +2034,7 @@ x_prev_histword(c)
x_ins(rcp);
} else {
int c;
-
+
rcp = cp;
/*
* ignore white-space at start of line
@@ -2149,13 +2149,13 @@ x_fold_case(c)
* x_lastcp()
*
* DESCRIPTION:
- * This function returns a pointer to that char in the
- * edit buffer that will be the last displayed on the
+ * This function returns a pointer to that char in the
+ * edit buffer that will be the last displayed on the
* screen. The sequence:
- *
+ *
* for (cp = x_lastcp(); cp > xcp; cp)
* x_bs(*--cp);
- *
+ *
* Will position the cursor correctly on the screen.
*
* RETURN VALUE: