Skip to content

Commit 28de06f

Browse files
committed
fix: Explicit match-string caught by pre-commit GHA
https://google.github.io/styleguide/vimscriptguide.xml?showone=Matching_Strings#Matching_Strings Signed-off-by: Julian Orchard <[email protected]>
1 parent c5bfc9b commit 28de06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/other.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" https://vim.fandom.com/wiki/Increasing_or_decreasing_numbers
22
function! AddSubtract(char)
3-
let pattern = &nrformats =~ 'alpha' ? '[[:alpha:][:digit:]]' : '[[:digit:]]'
3+
let pattern = &nrformats =~# 'alpha' ? '[[:alpha:][:digit:]]' : '[[:digit:]]'
44
call search(pattern, 'cw')
55
execute 'norm! ' . v:count1 . a:char
66
endfunction

0 commit comments

Comments
 (0)