Browse files

if Gabriel takes my patches, then i can do this

  • Loading branch information...
1 parent c6741e4 commit f86cfda42ca1dfeece93ab894dc4f40b3292cb92 @godfat committed Apr 21, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/ripl/rc.rb
  2. +2 −2 lib/ripl/rc/multiline_history_file.rb
View
2 lib/ripl/rc.rb
@@ -13,7 +13,7 @@
# upon session ends
require 'ripl/rc/squeeze_history'
-require 'ripl/rc/history_ivar'
+# require 'ripl/rc/history_ivar'
require 'ripl/rc/multiline_history_file'
require 'ripl/rc/mkdir_history'
require 'ripl/rc/ctrld_newline'
View
4 lib/ripl/rc/multiline_history_file.rb
@@ -1,13 +1,13 @@
require 'ripl/rc/u'
-require 'ripl/rc/history_ivar' # dependency
+# require 'ripl/rc/history_ivar' # dependency
module Ripl::Rc::MultilineHistoryFile
include Ripl::Rc::U
def write_history
return super if MultilineHistoryFile.disabled?
- @history_ivar = history.to_a.map{ |line|
+ @history = history.to_a.map{ |line|
line.gsub("\n", "#{Ripl.config[:rc_multiline_history_file_token]}\n")
}
super

0 comments on commit f86cfda

Please sign in to comment.