]> git.cworth.org Git - sup/commitdiff
bugfix: spurious nil pointer in textfield
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 5 Jun 2007 00:42:33 +0000 (00:42 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 5 Jun 2007 00:42:33 +0000 (00:42 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@435 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/textfield.rb

index 198de127e6e5565d34571c6296adeff95b859887..ad27c33f57fc1f24b2369f62b1a422cdc38c38b6 100644 (file)
@@ -75,7 +75,7 @@ class TextField
         c
       end
 
-    Ncurses::Form.form_driver @form, d
+    Ncurses::Form.form_driver @form, d if d
     Ncurses.refresh
 
     true