Skip to content

Commit

Permalink
fixed missing endif and changed default mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Osleff committed Dec 24, 2020
1 parent 5eadb75 commit e5cc83f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions autoload/textobj/atsequence.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function! s:select_word_at_sequence(A, W)
normal! B
else
normal! b
endif
endif
let startpos = getpos('.')
if a:W
Expand Down
12 changes: 6 additions & 6 deletions plugin/textobj/atsequence.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ set cpo&vim
" Interface "{{{1
call textobj#user#plugin('atsequence', {
\ 'target': {
\ 'select': 'stt', '*select-function*': 'textobj#atsequence#select_str_t',
\ 'select': 'ztt', '*select-function*': 'textobj#atsequence#select_str_t',
\ },
\ 'word': {
\ 'select-a': 'astw', '*select-a-function*': 'textobj#atsequence#select_a_str_w',
\ 'select-i': 'istw', '*select-i-function*': 'textobj#atsequence#select_i_str_w',
\ 'select-a': 'aztw', '*select-a-function*': 'textobj#atsequence#select_a_str_w',
\ 'select-i': 'iztw', '*select-i-function*': 'textobj#atsequence#select_i_str_w',
\ },
\ 'WORD': {
\ 'select-a': 'astW', '*select-a-function*': 'textobj#atsequence#select_a_str_W',
\ 'select-i': 'istW', '*select-i-function*': 'textobj#atsequence#select_i_str_W',
\ 'select-a': 'aztW', '*select-a-function*': 'textobj#atsequence#select_a_str_W',
\ 'select-i': 'iztW', '*select-i-function*': 'textobj#atsequence#select_i_str_W',
\ },
\ 'line': {
\ 'select': 'stl', '*select-function*': 'textobj#atsequence#select_str_l',
\ 'select': 'ztl', '*select-function*': 'textobj#atsequence#select_str_l',
\ },
\ })
" between
Expand Down

0 comments on commit e5cc83f

Please sign in to comment.