diff options
author | 2013-12-19 19:04:56 +0000 | |
---|---|---|
committer | 2013-12-19 19:04:56 +0000 | |
commit | 2c4b9a51c6301ff4b5c4f703190915e7a618b532 (patch) | |
tree | 089fd65183cb09e7475fc1027cafd7b62bb70e7f | |
parent | By default, tftp-proxy listens on localhost addresses. (diff) | |
download | wireguard-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.c | 6 |
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)); |