lib/textbringer/commands/isearch.rb in textbringer-0.3.2 vs lib/textbringer/commands/isearch.rb in textbringer-1.0.0

- old
+ new

@@ -41,10 +41,10 @@ isearch_mode(false, **options) end def isearch_mode(forward, recursive_edit: false) ISEARCH_STATUS[:forward] = forward - ISEARCH_STATUS[:string] = String.new + ISEARCH_STATUS[:string] = +"" ISEARCH_STATUS[:recursive_edit] = recursive_edit Controller.current.overriding_map = ISEARCH_MODE_MAP run_hooks(:isearch_mode_hook) add_hook(:pre_command_hook, :isearch_pre_command_hook) ISEARCH_STATUS[:start] = ISEARCH_STATUS[:last_pos] = Buffer.current.point