Make 'dired-unmark-backward' behave the same as emacs.

Any objections?

-lum

Index: dired.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/dired.c,v
retrieving revision 1.63
diff -u -p -u -p -r1.63 dired.c
--- dired.c     3 Jun 2013 05:10:59 -0000       1.63
+++ dired.c     19 Dec 2013 09:12:31 -0000
@@ -305,11 +305,11 @@ 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));
 }

Reply via email to