We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb10fa commit ac7094dCopy full SHA for ac7094d
1 file changed
src/ruby_debugger/logger.vim
@@ -15,10 +15,16 @@ endfunction
15
function! s:Logger.put(string) dict
16
if g:ruby_debugger_debug_mode
17
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=""')
+ exec 'redir >> ' . g:RubyDebugger.logger.file
+ silent call s:Logger.silent_echo(s:strip(string))
+ exec 'redir END'
21
endif
22
endfunction
23
24
+function! s:Logger.silent_echo(string)
25
+ echo a:string
26
+endfunction
27
+
28
" *** Logger class (end)
29
+"
30
0 commit comments