Skip to content

Commit

Permalink
🐞fix: エスケープし忘れ
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Nov 29, 2024
1 parent 773ad5e commit 57e0587
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vim/autoload/vimrc/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export def Commit(a: string)
ec system($'git commit -m {shellescape(a)}')
enddef
export def TagPush(a: string)
ec system($'git tag "{a}"')
ec system($'git tag "{shellescape(a)}"')
ec system($'git push origin "{shellescape(a)}"')
enddef
2 changes: 1 addition & 1 deletion .vim/autoload/vimrc/lazyload.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ g:vimhelpgenerator_author = 'Author : utubo'
g:vimhelpgenerator_defaultlanguage = 'en'
g:vimhelpgenerator_uri = 'https://github.com/utubo/'
au vimrc InsertLeave * set nopaste
au vimrc BufReadPost *.log* normal! G
au vimrc FileReadPost *.log* normal! G
xn * "vy/\V<C-r>=substitute(escape(@v,'\/'),"\n",'\\n','g')<CR><CR>
set mps+=(:),「:」,『:』,【:】,[:],<:>
Each i,a,A nnoremap <expr> {0} !empty(getline('.')) ? '{0}' : '"_cc'
Expand Down
2 changes: 1 addition & 1 deletion src/.vim/autoload/vimrc/git.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export def Commit(msg: string)
enddef

export def TagPush(tagname: string)
echo system($'git tag "{tagname}"')
echo system($'git tag "{shellescape(tagname)}"')
echo system($'git push origin "{shellescape(tagname)}"')
enddef

Expand Down
2 changes: 1 addition & 1 deletion src/.vim/autoload/vimrc/lazyload.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ g:vimhelpgenerator_uri = 'https://github.com/utubo/'
# ------------------------------------------------------
# コピペ寄せ集め色々 {{{
au vimrc InsertLeave * set nopaste
au vimrc BufReadPost *.log* normal! G
au vimrc FileReadPost *.log* normal! G
xnoremap * "vy/\V<C-r>=substitute(escape(@v,'\/'),"\n",'\\n','g')<CR><CR>
# https://github.com/astrorobot110/myvimrc/blob/master/vimrc
set matchpairs+=(:),「:」,『:』,【:】,[:],<:>
Expand Down

0 comments on commit 57e0587

Please sign in to comment.