mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:8.2.2993: 'fileencodings' default value should depend on 'encoding' (#31379)
Problem:    'fileencodings' default value should depend on 'encoding'. (Gary
            Johnson)
Solution:   When 'encoding' is "utf-8" use a different default value for
            'fileencodings'.
5ffefbb35a
Co-authored-by: Bram Moolenaar <Bram@vim.org>
			
			
This commit is contained in:
		| @@ -2252,6 +2252,14 @@ func Test_opt_default() | |||||||
|   call assert_equal('vt', &formatoptions) |   call assert_equal('vt', &formatoptions) | ||||||
|   set formatoptions&vim |   set formatoptions&vim | ||||||
|   call assert_equal('tcq', &formatoptions) |   call assert_equal('tcq', &formatoptions) | ||||||
|  |  | ||||||
|  |   call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | ||||||
|  |   set fencs=latin1 | ||||||
|  |   set fencs& | ||||||
|  |   call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | ||||||
|  |   set fencs=latin1 | ||||||
|  |   set all& | ||||||
|  |   call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | ||||||
| endfunc | endfunc | ||||||
|  |  | ||||||
| " Test for the 'cmdheight' option | " Test for the 'cmdheight' option | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq