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
f5ec5d3d
Commit
f5ec5d3d
authored
May 09, 1996
by
Richard M. Stallman
Browse files
Comment changes.
parent
227d2bed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/dired.c
src/dired.c
+7
-3
No files found.
src/dired.c
View file @
f5ec5d3d
...
...
@@ -453,6 +453,8 @@ file_name_completion (file, dirname, all_flag, ver_flag)
use it as the best match rather than one that is not
an exact match. This way, we get the case pattern
of the actual match. */
/* This tests that the current file is an exact match
but BESTMATCH is not (it is too long). */
if
((
matchsize
==
len
&&
matchsize
+
!!
directoryp
<
XSTRING
(
bestmatch
)
->
size
)
...
...
@@ -460,13 +462,15 @@ file_name_completion (file, dirname, all_flag, ver_flag)
/* If there is no exact match ignoring case,
prefer a match that does not change the case
of the input. */
/* If there is more than one exact match aside from
case, and one of them is exact including case,
prefer that one. */
/* This == checks that, of current file and BESTMATCH,
either both or neither are exact. */
(((
matchsize
==
len
)
==
(
matchsize
+
!!
directoryp
==
XSTRING
(
bestmatch
)
->
size
))
/* If there is more than one exact match aside from
case, and one of them is exact including case,
prefer that one. */
&&
!
bcmp
(
p2
,
XSTRING
(
file
)
->
data
,
XSTRING
(
file
)
->
size
)
&&
bcmp
(
p1
,
XSTRING
(
file
)
->
data
,
XSTRING
(
file
)
->
size
)))
{
...
...
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