In dired mode, I noticed that if the cursor is on a file marked for
deletion when dired-do-flagged-delete (x) is called, the cursor is
placed on the left hand side of the window. This diff makes d_expunge
behave like other delete functions and calls d_warpdot to() place the
cursor on the first character of a filename. ok? 

mark

Index: dired.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/dired.c,v
retrieving revision 1.74
diff -u -p -u -p -r1.74 dired.c
--- dired.c     23 Sep 2015 05:03:03 -0000      1.74
+++ dired.c     24 Sep 2015 00:42:55 -0000
@@ -413,6 +413,7 @@ d_expunge(int f, int n)
                }
        }
        curwp->w_dotline = tmp;
+       d_warpdot(curwp->w_dotp, &curwp->w_doto);
        return (TRUE);
 }
 

Reply via email to