diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 566757e9987..5bb80523c10 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -3733,7 +3733,12 @@ init_buffer () | |||
| 3733 | /* Add /: to the front of the name | 3733 | /* Add /: to the front of the name |
| 3734 | if it would otherwise be treated as magic. */ | 3734 | if it would otherwise be treated as magic. */ |
| 3735 | temp = Ffind_file_name_handler (current_buffer->directory, Qt); | 3735 | temp = Ffind_file_name_handler (current_buffer->directory, Qt); |
| 3736 | if (! NILP (temp)) | 3736 | if (! NILP (temp) |
| 3737 | /* If the default dir is just /, TEMP is non-nil | ||
| 3738 | because of the ange-ftp completion handler. | ||
| 3739 | However, it is not necessary to turn / into /:/. | ||
| 3740 | So avoid doing that. */ | ||
| 3741 | && strcmp ("/", XSTRING (current_buffer->directory)->data)) | ||
| 3737 | current_buffer->directory | 3742 | current_buffer->directory |
| 3738 | = concat2 (build_string ("/:"), current_buffer->directory); | 3743 | = concat2 (build_string ("/:"), current_buffer->directory); |
| 3739 | 3744 | ||