Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8ec5a404
Commit
8ec5a404
authored
Mar 21, 1998
by
Richard M. Stallman
Browse files
(Fdirectory_files): In FULL case, compute number of characters
parent
b10b2daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/dired.c
src/dired.c
+6
-0
No files found.
src/dired.c
View file @
8ec5a404
...
...
@@ -206,6 +206,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\
int
afterdirindex
=
dirnamelen
;
int
total
=
len
+
dirnamelen
;
int
needsep
=
0
;
int
nchars
;
/* Decide whether we need to add a directory separator. */
#ifndef VMS
...
...
@@ -221,6 +222,11 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\
XSTRING
(
name
)
->
data
[
afterdirindex
++
]
=
DIRECTORY_SEP
;
bcopy
(
dp
->
d_name
,
XSTRING
(
name
)
->
data
+
afterdirindex
,
len
);
nchars
=
chars_in_text
(
dp
->
d_name
,
afterdirindex
+
len
);
XSTRING
(
name
)
->
size
=
nchars
;
if
(
nchars
==
STRING_BYTES
(
XSTRING
(
name
)))
SET_STRING_BYTES
(
XSTRING
(
name
),
-
1
);
}
else
name
=
make_string
(
dp
->
d_name
,
len
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment