Permalink
Browse files

Skip Readline.refresh_line on JRUBY. (Closes #299)

  • Loading branch information...
1 parent 17a411d commit 9b77cecdd58e949575487582158ee0345f4811f2 @netzpirat netzpirat committed Jul 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/guard/interactors/readline.rb
View
6 lib/guard/interactors/readline.rb
@@ -49,18 +49,18 @@ def initialize
#
def stop
# Erase the current line for Ruby Readline
- if Readline.respond_to?(:refresh_line)
+ if Readline.respond_to?(:refresh_line) && !defined(JRUBY_VERSION)
Readline.refresh_line
end
-
+
# Erase the current line for Rb-Readline
if defined?(RbReadline) && RbReadline.rl_outstream
RbReadline._rl_erase_entire_line
end
super
end
-
+
# Read a line from stdin with Readline.
#
def read_line

0 comments on commit 9b77cec

Please sign in to comment.