sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 6938172447d228fdf115350de729ac5b05b8cbd6
parent a6b73f9268d610e992940e2925ff94c5eab48a34
Author: Whyme Lyu <callme5long@gmail.com>
Date:   Sun, 26 May 2013 20:34:58 +0800

HookContext#flash should fallback to log()

Not sure where it'd be used though.

Diffstat:
M lib/sup/hook.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
@@ -20,7 +20,11 @@ class HookManager
     end
 
     def flash s
-      BufferManager.flash s
+      if BufferManager.instantiated?
+        BufferManager.flash s
+      else
+        log s
+      end
     end
 
     def log s