]> git.notmuchmail.org Git - sup/commitdiff
bugfix: BufferManager#ask_getch not clearing the flash message
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 3 Feb 2008 01:48:37 +0000 (17:48 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 3 Feb 2008 01:48:37 +0000 (17:48 -0800)
lib/sup/buffer.rb

index 4374fa82be83de4db6c9b573bdc54e6bc57eb4d1..7c2c0ae10c015e8960dc815425c62cc322ef4ee0 100644 (file)
@@ -557,7 +557,6 @@ EOS
 
   def ask_getch question, accept=nil
     raise "impossible!" if @asking
-    @asking = true
 
     accept = accept.split(//).map { |x| x[0] } if accept
 
@@ -570,6 +569,7 @@ EOS
       Ncurses.refresh
     end
 
+    @asking = true
     ret = nil
     done = false
     until done