Patch 9.0.1650
Problem:    MS-Windows: default 'viewdir' may include read-only directory.
Solution:   Use $HOME instead of $VIM for 'viewdir' default. (closes #12119)
Files:      runtime/doc/options.txt, src/os_dos.h


*** ../vim-9.0.1649/runtime/doc/options.txt     2023-05-12 17:49:09.824299513 
+0100
--- runtime/doc/options.txt     2023-06-23 16:13:32.717483639 +0100
***************
*** 8843,8853 ****
        displayed when 'verbosefile' is set.
  
                                                *'viewdir'* *'vdir'*
! 'viewdir' 'vdir'      string  (default for Amiga and Win32:
!                                                        "$VIM/vimfiles/view",
!                                for Unix: "~/.vim/view",
!                                for macOS: "$VIM:vimfiles:view"
!                                for VMS: "sys$login:vimfiles/view")
                        global
                        {not available when compiled without the |+mksession|
                        feature}
--- 8912,8922 ----
        displayed when 'verbosefile' is set.
  
                                                *'viewdir'* *'vdir'*
! 'viewdir' 'vdir'      string  (default for Amiga "$VIM/vimfiles/view",
!                                        for Win32: "$HOME/vimfiles/view",
!                                        for Unix: "~/.vim/view",
!                                        for macOS: "$VIM/vimfiles/view"
!                                        for VMS: "sys$login:vimfiles/view")
                        global
                        {not available when compiled without the |+mksession|
                        feature}
*** ../vim-9.0.1649/src/os_dos.h        2023-06-08 22:16:19.688379704 +0100
--- src/os_dos.h        2023-06-23 15:58:38.881274651 +0100
***************
*** 97,103 ****
  #endif
  
  #ifndef DFLT_VDIR
! # define DFLT_VDIR    "$VIM/vimfiles/view"    // default for 'viewdir'
  #endif
  
  #ifndef DFLT_DIR
--- 97,103 ----
  #endif
  
  #ifndef DFLT_VDIR
! # define DFLT_VDIR    "$HOME/vimfiles/view"   // default for 'viewdir'
  #endif
  
  #ifndef DFLT_DIR
***************
*** 105,111 ****
  #endif
  
  #define DFLT_ERRORFILE                "errors.err"
! #define DFLT_RUNTIMEPATH      
"$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/vimfiles/after"
  #define CLEAN_RUNTIMEPATH     "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
  
  #define CASE_INSENSITIVE_FILENAME   // ignore case when comparing file names
--- 105,111 ----
  #endif
  
  #define DFLT_ERRORFILE                "errors.err"
! #define DFLT_RUNTIMEPATH      
"$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$HOME/vimfiles/after,$VIM/vimfiles/after"
  #define CLEAN_RUNTIMEPATH     "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
  
  #define CASE_INSENSITIVE_FILENAME   // ignore case when comparing file names
*** ../vim-9.0.1649/src/version.c       2023-06-22 23:04:07.316962058 +0100
--- src/version.c       2023-06-23 15:56:34.885242413 +0100
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1650,
  /**/

-- 
A scientist is someone who knows exactly how an engine works, but
can't fix his car when it fails to start.
An engineer is someone who knows only some things about an engine, but
can fix his car when it's broken.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230623151542.26D6A1C054C%40moolenaar.net.

Raspunde prin e-mail lui