diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/draw.rb | 7 |
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 |