Permalink
Browse files

expanding interval code simplified

  • Loading branch information...
1 parent e7b9d59 commit b4478ed83728929068ade275405b221d4c7911ae @troydm committed Feb 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 autoload/easytree.vim
View
@@ -731,15 +731,15 @@ endfunction
function! s:ExpandDir(fpath,linen)
if !exists('b:expandtime')
- let b:expandtime = str2float(reltimestr(reltime()))
+ let b:expandtime = reltime()
else
- let tdiff = (str2float(reltimestr(reltime())) - b:expandtime)
+ let tdiff = str2float(reltimestr(reltime(b:expandtime)))
if tdiff >= 1.0
if tdiff <= 1.5
redraw
echo 'expanding '.a:fpath
endif
- let b:expandtime = str2float(reltimestr(reltime()))
+ let b:expandtime = reltime()
endif
endif
let linen = a:linen

0 comments on commit b4478ed

Please sign in to comment.