summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2013-12-19 19:04:56 +0000
committerlum <lum@openbsd.org>2013-12-19 19:04:56 +0000
commit2c4b9a51c6301ff4b5c4f703190915e7a618b532 (patch)
tree089fd65183cb09e7475fc1027cafd7b62bb70e7f
parentBy default, tftp-proxy listens on localhost addresses. (diff)
downloadwireguard-openbsd-2c4b9a51c6301ff4b5c4f703190915e7a618b532.tar.xz
wireguard-openbsd-2c4b9a51c6301ff4b5c4f703190915e7a618b532.zip
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@
-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));