diff options
author | Seth Jackson <sethjackson@gmail.com> | 2016-01-06 18:45:50 -0500 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2016-01-16 14:12:56 -0500 |
commit | e4fb777252ec92ba46627e6475bafd630c529c65 (patch) | |
tree | 66262f23c49df912c690dd9b0cb372a37f37198a /src | |
parent | dddbf9c5fa061cb03d6b6240ac6610b68b9304f5 (diff) | |
download | rneovim-e4fb777252ec92ba46627e6475bafd630c529c65.tar.gz rneovim-e4fb777252ec92ba46627e6475bafd630c529c65.tar.bz2 rneovim-e4fb777252ec92ba46627e6475bafd630c529c65.zip |
doc: Remove more references to MS-DOS
Among other things, this includes:
- lies about command.com
- references to pcterm
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 41 | ||||
-rw-r--r-- | src/nvim/os/env.c | 2 |
2 files changed, 19 insertions, 24 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index bd0f0fc80a..9069a46151 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -366,14 +366,13 @@ readfile ( /* don't display the file info for another buffer now */ need_fileinfo = FALSE; - /* - * For Unix: Use the short file name whenever possible. - * Avoids problems with networks and when directory names are changed. - * Don't do this for MS-DOS, a "cd" in a sub-shell may have moved us to - * another directory, which we don't detect. - */ - if (sfname == NULL) + // For Unix: Use the short file name whenever possible. + // Avoids problems with networks and when directory names are changed. + // Don't do this for Windows, a "cd" in a sub-shell may have moved us to + // another directory, which we don't detect. + if (sfname == NULL) { sfname = fname; + } #if defined(UNIX) fname = sfname; #endif @@ -2353,13 +2352,12 @@ buf_write ( if (sfname == NULL) sfname = fname; - /* - * For Unix: Use the short file name whenever possible. - * Avoids problems with networks and when directory names are changed. - * Don't do this for MS-DOS, a "cd" in a sub-shell may have moved us to - * another directory, which we don't detect - */ - ffname = fname; /* remember full fname */ + + // For Unix: Use the short file name whenever possible. + // Avoids problems with networks and when directory names are changed. + // Don't do this for Windows, a "cd" in a sub-shell may have moved us to + // another directory, which we don't detect. + ffname = fname; // remember full fname #ifdef UNIX fname = sfname; #endif @@ -6449,12 +6447,11 @@ apply_autocmds_group ( } #ifdef BACKSLASH_IN_FILENAME - /* - * Replace all backslashes with forward slashes. This makes the - * autocommand patterns portable between Unix and MS-DOS. - */ - if (sfname != NULL) + // Replace all backslashes with forward slashes. This makes the + // autocommand patterns portable between Unix and Windows. + if (sfname != NULL) { forward_slash(sfname); + } forward_slash(fname); #endif @@ -6771,10 +6768,8 @@ int has_autocmd(event_T event, char_u *sfname, buf_T *buf) return FALSE; #ifdef BACKSLASH_IN_FILENAME - /* - * Replace all backslashes with forward slashes. This makes the - * autocommand patterns portable between Unix and MS-DOS. - */ + // Replace all backslashes with forward slashes. This makes the + // autocommand patterns portable between Unix and Windows. sfname = vim_strsave(sfname); forward_slash(sfname); forward_slash(fname); diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index a791dca39c..734f6f9e38 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -142,7 +142,7 @@ void os_get_hostname(char *hostname, size_t len) /// - go to that directory /// - do os_dirname() to get the real name of that directory. /// This also works with mounts and links. -/// Don't do this for MS-DOS, it will change the "current dir" for a drive. +/// Don't do this for Windows, it will change the "current dir" for a drive. static char_u *homedir = NULL; void init_homedir(void) |