about summary refs log tree commit diff stats
path: root/code/draw.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/draw.rb')
-rw-r--r--code/draw.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/draw.rb b/code/draw.rb
index 39f815fa..6b3acc8b 100644
--- a/code/draw.rb
+++ b/code/draw.rb
@@ -24,7 +24,7 @@ module Fm
 					f.lines.each do |l|
 						if check
 							check = false
-							break unless l.each_char.all? {|x| x[0] > 0 and x[0] < 128}
+							break unless l.each_byte.all? {|x| x.ord > 0 and x.ord < 128}
 						end
 						puti i+1, left, l.gsub("\t","   ")[0, wid-1].ljust(wid)
 						i += 1