Remove the code related to the shortname option

This commit is contained in:
Felipe Oliveira Carvalho
2014-04-27 21:49:36 -03:00
committed by Thiago de Arruda
parent 8500eeed86
commit 89e07185e9
7 changed files with 19 additions and 290 deletions

View File

@@ -1510,7 +1510,6 @@ void write_viminfo(char_u *file, int forceit)
mode_t umask_save;
#endif
#ifdef UNIX
int shortname = FALSE; /* use 8.3 file name */
struct stat st_old; /* mch_stat() of existing viminfo file */
#endif
@@ -1579,9 +1578,7 @@ void write_viminfo(char_u *file, int forceit)
if (mch_stat((char *)tempname, &st_new) == 0) {
/*
* Try another name. Change one character, just before
* the extension. This should also work for an 8.3
* file name, when after adding the extension it still is
* the same file as the original.
* the extension.
*/
wp = tempname + STRLEN(tempname) - 5;
if (wp < path_tail(tempname)) /* empty file name? */