Mercurial > vim
comparison src/testdir/test_textformat.vim @ 18910:e8fe65da4198 v8.2.0016
patch 8.2.0016: test name used twice, option not restored properly
Commit: https://github.com/vim/vim/commit/a48e78e11f2b647183fd12f569020756b17d7683
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 17 20:29:26 2019 +0100
patch 8.2.0016: test name used twice, option not restored properly
Problem: Test name used twice, option not restored properly.
Solution: Rename function, restore option with "&".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 17 Dec 2019 20:30:04 +0100 |
parents | bb87c5c1e29b |
children | b8fd7364befd |
comparison
equal
deleted
inserted
replaced
18909:1e18ba13a32c | 18910:e8fe65da4198 |
---|---|
904 | 904 |
905 bwipe! | 905 bwipe! |
906 endfunc | 906 endfunc |
907 | 907 |
908 " Test for 'whichwrap' with multi-byte character | 908 " Test for 'whichwrap' with multi-byte character |
909 func Test_whichwrap() | 909 func Test_whichwrap_multi_byte() |
910 new | 910 new |
911 let t =<< trim END | 911 let t =<< trim END |
912 á | 912 á |
913 x | 913 x |
914 END | 914 END |
915 call setline(1, t) | 915 call setline(1, t) |
916 call cursor(2, 1) | 916 call cursor(2, 1) |
917 | 917 |
918 set whichwrap+=h | 918 set whichwrap+=h |
919 normal dh | 919 normal dh |
920 set whichwrap-=h | 920 set whichwrap& |
921 | 921 |
922 let expected =<< trim END | 922 let expected =<< trim END |
923 áx | 923 áx |
924 END | 924 END |
925 call assert_equal(expected, getline(1, '$')) | 925 call assert_equal(expected, getline(1, '$')) |