Mercurial > vim
comparison src/testdir/test_backspace_opt.vim @ 32096:e7ab58f57ea3 v9.0.1379
patch 9.0.1379: functions for handling options are not ordered
Commit: https://github.com/vim/vim/commit/5284b23e148063648be0ff46c730ca574e3ca9fa
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Mar 4 19:57:32 2023 +0000
patch 9.0.1379: functions for handling options are not ordered
Problem: Functions for handling options are not ordered.
Solution: Put functions in alphabetical order. (Yegappan Lakshmanan,
closes #12101)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Mar 2023 21:00:04 +0100 |
parents | ffb173dbf228 |
children |
comparison
equal
deleted
inserted
replaced
32095:3b1944008f7e | 32096:e7ab58f57ea3 |
---|---|
136 set visualbell&vim | 136 set visualbell&vim |
137 set backspace&vim | 137 set backspace&vim |
138 close! | 138 close! |
139 endfunc | 139 endfunc |
140 | 140 |
141 " Test for setting 'backspace' to a number value (for backward compatibility) | |
142 func Test_backspace_number_value() | |
143 new | |
144 | |
145 set backspace=0 | |
146 call setline(1, ['one two', 'three four']) | |
147 call cursor(2, 1) | |
148 exe "normal! A\<C-W>\<C-U>" | |
149 call assert_equal('three four', getline(2)) | |
150 | |
151 set backspace=1 | |
152 exe "normal! A\<CR>five\<C-W>\<C-U>\<C-W>\<C-U>" | |
153 call assert_equal(['one two', 'three four'], getline(1, '$')) | |
154 | |
155 set backspace=2 | |
156 call cursor(2, 7) | |
157 exe "normal! ihalf\<C-U>" | |
158 call assert_equal('three four', getline(2)) | |
159 | |
160 set backspace=3 | |
161 call cursor(2, 7) | |
162 exe "normal! ihalf\<C-U>" | |
163 call assert_equal('four', getline(2)) | |
164 | |
165 bw! | |
166 set backspace& | |
167 endfunc | |
168 | |
141 " vim: shiftwidth=2 sts=2 expandtab | 169 " vim: shiftwidth=2 sts=2 expandtab |