aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-13 19:09:32 +0000
committerRichard M. Stallman1996-06-13 19:09:32 +0000
commit51b1d12e571d958cd4e9b59713f7ec72c1d2b105 (patch)
treedecded4b6df348f649c03daead388378d21d5074
parentd7a28201b0d993e4959ddd8452682866bb29d353 (diff)
downloademacs-51b1d12e571d958cd4e9b59713f7ec72c1d2b105.tar.gz
emacs-51b1d12e571d958cd4e9b59713f7ec72c1d2b105.zip
(Fexpand_file_name): When simplifying /foo/.., keep the initial slash.
-rw-r--r--src/fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index a05a72e97bd..f5a800f6c16 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1386,6 +1386,8 @@ See also the function `substitute-in-file-name'.")
1386 { 1386 {
1387 while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) 1387 while (o != target && (--o) && !IS_DIRECTORY_SEP (*o))
1388 ; 1388 ;
1389 if (o == target && IS_ANY_SEP (*o))
1390 ++o;
1389 p += 3; 1391 p += 3;
1390 } 1392 }
1391 else 1393 else