Skip to content

Commit

Permalink
Remove trailing space.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbill committed Aug 26, 2012
1 parent f2bc4af commit ce7504b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/undotree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,8 @@ function! s:undotree.Render()
endif

" output.
let newline = " "
let onespace = " "
let newline = onespace
let newmeta = {}
let node = slots[index]
if type(node) == TYPE_X
Expand Down Expand Up @@ -845,7 +846,8 @@ function! s:undotree.Render()
endif
endif
unlet node
if newline != " "
if newline != onespace
let newline = substitute(newline,'\s*$','','g') "remove trailing space.
call insert(out,newline,0)
call insert(outmeta,newmeta,0)
endif
Expand Down

0 comments on commit ce7504b

Please sign in to comment.