lib/rib/extra/autoindent.rb in rib-1.0.2 vs lib/rib/extra/autoindent.rb in rib-1.0.3

- old
+ new

@@ -76,10 +76,10 @@ # this should be called after ::Readline.readline, but it's blocking, # and i don't know if there's any hook to do this, so here we use thread Thread.new do sleep(0.01) ::Readline.line_buffer = current_autoindent if - ::Readline.line_buffer.empty? + ::Readline.line_buffer && ::Readline.line_buffer.empty? end super end