summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-12 06:44:40 +0200
committerhut <hut@lavabit.com>2009-06-12 06:44:40 +0200
commitd52cc245e910784daf7b5a9581ac81f40ff404c2 (patch)
treea46de7a9deb4784434f2d9e5e79c305d9a701226
parent704ea6ba9be080f0dec9ffc06042cc4750ffd711 (diff)
downloadranger-d52cc245e910784daf7b5a9581ac81f40ff404c2.tar.gz
clean up
-rw-r--r--code/draw.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/code/draw.rb b/code/draw.rb
index a2f167f3..67e3f7de 100644
--- a/code/draw.rb
+++ b/code/draw.rb
@@ -94,15 +94,16 @@ module Fm
 
 			if infos
 				myinfo = " #{f.infostring}  "
+				sz = myinfo.size
 				str = fn[0, wid-1].ljust(wid+1)
-				if str.size > myinfo.size
-					str[-myinfo.size..-1] = myinfo
+				if str.size > sz
+					str[-sz..-1] = myinfo
 					yes = true
 				else
 					yes = false
 				end
 				puti l, left, str
-				attr_at(l, right-myinfo.size, myinfo.size, Color.normal.send(clrname))
+				attr_at(l, right-sz, sz, Color.normal.send(clrname))
 			else
 				puti l, left, fn[0, wid-1].ljust(wid+1)
 			end