Skip to content

Commit ac7094d

Browse files
author
A.G. Russell Knives
committed
spaces solved
1 parent ceb10fa commit ac7094d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/ruby_debugger/logger.vim

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ endfunction
1515
function! s:Logger.put(string) dict
1616
if g:ruby_debugger_debug_mode
1717
let string = 'Vim plugin, ' . strftime("%H:%M:%S") . ': ' . a:string
18-
execute('set verbosefile=' . g:RubyDebugger.logger.file)
19-
silent verbose echo substitute(string,'/^\s*/','',"")
20-
execute('set verbosefile=""')
18+
exec 'redir >> ' . g:RubyDebugger.logger.file
19+
silent call s:Logger.silent_echo(s:strip(string))
20+
exec 'redir END'
2121
endif
2222
endfunction
2323

24+
function! s:Logger.silent_echo(string)
25+
echo a:string
26+
endfunction
27+
2428
" *** Logger class (end)
29+
"
30+
"

0 commit comments

Comments
 (0)