We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1af9cde + c63c5e7 commit 78457d4Copy full SHA for 78457d4
autoload/textobj/variable_segment.vim
@@ -38,7 +38,10 @@ function! s:select_a()
38
if start_column - 2 <= word_start ||
39
\ getline(start_line)[:start_column - 2] =~# '^_*$'
40
call setpos('.', end_position)
41
+ let l:tildeop = &tildeop
42
+ set notildeop
43
normal! l~
44
+ let &tildeop = l:tildeop
45
endif
46
47
t/variable-segment.vim
@@ -404,4 +404,13 @@ describe 'av'
404
normal dav
405
Expect getline(1) == 'foo bazQuux'
406
end
407
+ it 'selects leading small camels and swaps case even with tildeop'
408
+ set tildeop " Vim default is notildeop
409
+ put! = 'fooBarQuux'
410
+ normal! 0
411
+ normal dav
412
+ Expect getline(1) == 'barQuux'
413
+ Expect &tildeop == 1
414
415
+ end
416
0 commit comments