diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-24 15:02:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-24 15:02:03 +0200 |
commit | ad875fb7fff85d313fa35acde1afaec998d347d7 (patch) | |
tree | 384af81a849113f3c2fcc5c4abd66c126f4cc3e8 /src/testdir | |
parent | e24a9c0b592a11743475166c873a5c346c65f73d (diff) |
updated for version 7.4a.041v7.4a.041
Problem: When using ":new ++ff=unix" and "dos" is first in 'fileformats'
then 'ff' is set to "dos" instead of "unix". (Ingo Karkat)
Solution: Create set_file_options() and invoke it from do_ecmd().
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test91.in | 12 | ||||
-rw-r--r-- | src/testdir/test91.ok | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test91.in b/src/testdir/test91.in index 0143c1880e..e900a522df 100644 --- a/src/testdir/test91.in +++ b/src/testdir/test91.in @@ -3,6 +3,7 @@ vim: set ft=vim : STARTTEST :so small.vim +:so mbyte.vim :" :" Test for getbufvar() :" Use strings to test for memory leaks. @@ -22,6 +23,17 @@ STARTTEST :$put =string(getbufvar(1, '&autoindent')) :$put =string(getbufvar(1, '&autoindent', 1)) :" +:" Open new window with forced option values +:set fileformats=unix,dos +:new ++ff=dos ++bin ++enc=iso-8859-2 +:let otherff = getbufvar(bufnr('%'), '&fileformat') +:let otherbin = getbufvar(bufnr('%'), '&bin') +:let otherfenc = getbufvar(bufnr('%'), '&fenc') +:close +:$put =otherff +:$put =string(otherbin) +:$put =otherfenc +:unlet otherff otherbin otherfenc :" test for getwinvar() :let w:var_str = "Dance" :let def_str = "Chance" diff --git a/src/testdir/test91.ok b/src/testdir/test91.ok index 6227ec7d32..22e1572209 100644 --- a/src/testdir/test91.ok +++ b/src/testdir/test91.ok @@ -10,6 +10,9 @@ start: '5678' 0 0 +dos +1 +iso-8859-2 'Dance' 'Dance' {'var_str': 'Dance'} |