Mercurial > vim
diff src/fileio.c @ 9:4102fb4ea781 v7.0002
updated for version 7.0002
author | vimboss |
---|---|
date | Sun, 20 Jun 2004 12:51:53 +0000 |
parents | 7edf9b6e4c36 |
children | 4e2284e71352 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -5290,8 +5290,11 @@ shorten_fnames(force) } if (p == NULL || buf->b_fname == NULL) buf->b_fname = buf->b_ffname; - mf_fullname(buf->b_ml.ml_mfp); - } + } + + /* Always make the swap file name a full path, a "nofile" buffer may + * also have a swap file. */ + mf_fullname(buf->b_ml.ml_mfp); } #ifdef FEAT_WINDOWS status_redraw_all();