Mercurial > vim
comparison src/testdir/test_options.vim @ 24912:02fa8d72e4e3 v8.2.2993
patch 8.2.2993: 'fileencodings' default value should depend on 'encoding'
Commit: https://github.com/vim/vim/commit/5ffefbb35aba2448099314a9e09714d2f3b2b1bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 20:27:36 2021 +0200
patch 8.2.2993: 'fileencodings' default value should depend on 'encoding'
Problem: 'fileencodings' default value should depend on 'encoding'. (Gary
Johnson)
Solution: When 'encoding' is "utf-8" use a different default value for
'fileencodings'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 20:30:03 +0200 |
parents | 4c1b6f3eb96b |
children | 1186160ecf57 |
comparison
equal
deleted
inserted
replaced
24911:fd37be6dc258 | 24912:02fa8d72e4e3 |
---|---|
1138 func Test_opt_default() | 1138 func Test_opt_default() |
1139 set formatoptions&vi | 1139 set formatoptions&vi |
1140 call assert_equal('vt', &formatoptions) | 1140 call assert_equal('vt', &formatoptions) |
1141 set formatoptions&vim | 1141 set formatoptions&vim |
1142 call assert_equal('tcq', &formatoptions) | 1142 call assert_equal('tcq', &formatoptions) |
1143 | |
1144 call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | |
1145 set fencs=latin1 | |
1146 set fencs& | |
1147 call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | |
1148 set fencs=latin1 | |
1149 set all& | |
1150 call assert_equal('ucs-bom,utf-8,default,latin1', &fencs) | |
1143 endfunc | 1151 endfunc |
1144 | 1152 |
1145 " Test for the 'cmdheight' option | 1153 " Test for the 'cmdheight' option |
1146 func Test_cmdheight() | 1154 func Test_cmdheight() |
1147 %bw! | 1155 %bw! |