summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMark Lumsden <lum@cvs.openbsd.org>2013-12-19 19:04:57 +0000
committerMark Lumsden <lum@cvs.openbsd.org>2013-12-19 19:04:57 +0000
commitc53fcb577760bd5cb9601f8917ab49585a73e1ed (patch)
tree4c41f6a25d17f1638eea79fe81f859e58dfef129 /usr.bin
parent8ab994b63736deb7b86c5e6b7ed500aa4c1211bb (diff)
Make dired-unmark-backward behave the same as emacs: move cursor up a
line then remove 'D' instead of remove 'D' then move up a line. input/ok florian@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/dired.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c
index 2d8e4e71bcd..a087c5b602d 100644
--- a/usr.bin/mg/dired.c
+++ b/usr.bin/mg/dired.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dired.c,v 1.63 2013/06/03 05:10:59 lum Exp $ */
+/* $OpenBSD: dired.c,v 1.64 2013/12/19 19:04:56 lum Exp $ */
/* This file is in the public domain. */
@@ -305,10 +305,10 @@ d_undelbak(int f, int n)
if (n < 0)
return (d_undel(f, -n));
while (n--) {
- if (llength(curwp->w_dotp) > 0)
- lputc(curwp->w_dotp, 0, ' ');
if (lback(curwp->w_dotp) != curbp->b_headp)
curwp->w_dotp = lback(curwp->w_dotp);
+ if (llength(curwp->w_dotp) > 0)
+ lputc(curwp->w_dotp, 0, ' ');
}
curwp->w_rflag |= WFEDIT | WFMOVE;
return (d_warpdot(curwp->w_dotp, &curwp->w_doto));