Skip to content

Commit c34cdbb

Browse files
committed
Only set empty custom sentence terminators if not previously assigned
1 parent b06897c commit c34cdbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/textobj/sentence.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function! textobj#sentence#select_i()
3535
return s:select(b:textobj_sentence_re_i)
3636
endfunction
3737

38-
let g:re_extra_sentence_term = ''
38+
if !exists('g:re_extra_sentence_term')
39+
let g:re_extra_sentence_term = ''
40+
endif
3941

4042
function! textobj#sentence#init(...)
4143
let l:args = a:0 ? a:1 : {}

0 commit comments

Comments
 (0)