lib/tw/app/main.rb in tw-0.3.2 vs lib/tw/app/main.rb in tw-0.3.3

- old
+ new

@@ -111,10 +111,10 @@ end res }, @parser[:format] else message = @parser.argv.join(' ') - if (len = message.split(//u).size) > 140 + if (len = message.char_length_with_t_co) > 140 STDERR.puts "tweet too long (#{len} chars)" on_error else puts "tweet \"#{message}\"? (#{len} chars)" puts '[Y/n]'