artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70325c0
)
Check if a file name can be extracted from a line before marking for
author
lum
<lum@openbsd.org>
Tue, 13 Oct 2015 20:10:09 +0000
(20:10 +0000)
committer
lum
<lum@openbsd.org>
Tue, 13 Oct 2015 20:10:09 +0000
(20:10 +0000)
deletion.
usr.bin/mg/dired.c
patch
|
blob
|
history
diff --git
a/usr.bin/mg/dired.c
b/usr.bin/mg/dired.c
index
3fb6199
..
3641364
100644
(file)
--- a/
usr.bin/mg/dired.c
+++ b/
usr.bin/mg/dired.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dired.c,v 1.7
8 2015/10/12 19:08:3
9 lum Exp $ */
+/* $OpenBSD: dired.c,v 1.7
9 2015/10/13 20:10:0
9 lum Exp $ */
/* This file is in the public domain. */
@@
-286,7
+286,7
@@
d_del(int f, int n)
if (n < 0)
return (FALSE);
while (n--) {
- if (
llength(curwp->w_dotp) > 0
) {
+ if (
d_warpdot(curwp->w_dotp, &curwp->w_doto) == TRUE
) {
lputc(curwp->w_dotp, 0, DDELCHAR);
curbp->b_flag |= BFDIREDDEL;
}