Subject: [sup-talk] To: tab completion

From: [email-masked] (Ian Taylor)
Date: Mon, 03 Dec 2007 04:39:18 -0500

Maybe this happened when there were no results?

--- ZeroDivisionError from thread: main
divided by 0
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:35:in `%'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:35:in `update_lines'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/hook.rb:84:in `each_with_index'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:33:in `each'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:33:in `each_with_index'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:33:in `update_lines'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:15:in `lines'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:130:in `ensure_mode_validity'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:136:in `resize'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:74:in `resize'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:279:in `draw_screen'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:533:in `ask'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:415:in `ask_many_emails_with_completions'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in `send'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:490:in `ask_for_contacts'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in `send'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/compose-mode.rb:23:in `spawn_nicely'
/var/lib/gems/1.8/gems/sup-0.3/bin/sup:236
/var/lib/gems/1.8/bin/sup:16:in `load'
/var/lib/gems/1.8/bin/sup:16

-- 
Ian Taylor

---

From: [email-masked] (William Morgan)
Date: Sat, 08 Dec 2007 14:51:12 -0800

> /var/lib/gems/1.8/gems/sup-0.3/lib/sup/modes/completion-mode.rb:35:in `%'

Actually, it happens when one of the options for completion is wider
than the screen. Fixed in SVN.

-- 
William <wmorgan-sup at masanjin.net>