]> git.cworth.org Git - sup/commit
use offscreen lines for textfield overflow
authorSteve Goldman <sgoldman@tower-research.com>
Sun, 23 Nov 2008 20:59:49 +0000 (15:59 -0500)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 27 Nov 2008 00:30:50 +0000 (16:30 -0800)
commit814d03eb9ec3f28bee30bc277ba4df44f65daef0
tree146d3868a19505669859baf01d3d151071882f0b
parent65750a8d4399e7c81742d17fab6c05452606a005
use offscreen lines for textfield overflow

In the To:, Cc:, Bcc:, etc., prompts, the TextField was initializing
an NCurses form with zero offscreen lines.  So when the user typed too
many addresses at the prompt the cursor wrapped around and everything
they had typed was clobbered.  This patch initializes the form object
to have 256 offscreen lines (I had no rationale for 256 except that it
is a nice, big power of two).  Now the user can type plenty of names
and the wrap-around works as the user would expect.
lib/sup/textfield.rb