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
' href='#n90'>90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130