Skip to content

Commit

Permalink
FIX tlog#Uncomment()
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Oct 30, 2015
1 parent d2cfdcb commit dd0808b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/tlog.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2009-02-21.
" @Last Change: 2015-10-28.
" @Revision: 46
" @Last Change: 2015-10-29.
" @Revision: 48

let s:save_cpo = &cpo
set cpo&vim
Expand All @@ -28,7 +28,7 @@ endf
function! tlog#Uncomment(line1, line2) "{{{3
let tlogCP = getpos('.')
let tlogSR = @/
exec 'silent '. a:line1 .','. a:line2 .'s/\C^\(\s*\)"\s*\%(uns\%[ilent]\s\+\)\(echom ["'']DBG\>\|.\{-}\s"\s\+DBG$\|\(\(sil\%[ent]!\?\s\+\)\?call *\|exe\%[cute] *[''"]\)\?\(TLog\|tlog#\)\)/\1\2/ge'
exec 'silent '. a:line1 .','. a:line2 .'s/\C^\(\s*\)"\s*\(\%(uns\%[ilent]\s\+\)\?\%(echom ["'']DBG\>\|.\{-}\s"\s\+DBG$\|\(\(sil\%[ent]!\?\s\+\)\?call *\|exe\%[cute] *[''"]\)\?\(TLog\|tlog#\)\)\)/\1\2/ge'
let @/ = tlogSR
call setpos('.', tlogCP)
endf
Expand Down

0 comments on commit dd0808b

Please sign in to comment.