Skip to content

Commit

Permalink
Fixed mix printf and echo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aben20807 committed Jul 22, 2018
1 parent ee80ec2 commit d8108a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/runner.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" Author: Huang Po-Hsuan <aben20807@gmail.com>
" Filename: runner.vim
" Last Modified: 2018-04-29 11:43:56
" Last Modified: 2018-07-22 16:14:19
" Vim: enc=utf-8

" Function: runner#InitVariable() function
Expand Down Expand Up @@ -117,12 +117,12 @@ function! runner#Before() abort
endif
if g:runner_print_timestamp && b:ft !=# 'markdown'
let l:date = strftime("%Y-%m-%d_%T")
silent execute "!echo -e '\033[31m' "
silent execute "!printf '\033[31m' "
silent execute '!printf "<<<< \%s \%s >>>>\n" ' .
\l:date . " " . expand('%:t')
silent execute "!echo -en '\033[0m'"
silent execute "!printf '\033[0m'"
if b:supported == 0
execute "!echo -e ''"
execute "!printf ''"
endif
endif
endfunction
Expand Down

0 comments on commit d8108a8

Please sign in to comment.