From d52cc245e910784daf7b5a9581ac81f40ff404c2 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Jun 2009 06:44:40 +0200 Subject: clean up --- code/draw.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'code') 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 -- cgit 1.4.1-2-gfad0