lib/textbringer/commands/isearch.rb in textbringer-0.3.0 vs lib/textbringer/commands/isearch.rb in textbringer-0.3.1
- old
+ new
@@ -6,11 +6,11 @@
(?\x20..?\x7e).each do |c|
ISEARCH_MODE_MAP.define_key(c, :isearch_printing_char)
end
ISEARCH_MODE_MAP.define_key(?\t, :isearch_printing_char)
ISEARCH_MODE_MAP.handle_undefined_key do |key|
- if key.is_a?(String) && /[\0-\x7f]/ !~ key
+ if key.is_a?(String) && /[\0-\x7f]/ !~ key
:isearch_printing_char
else
nil
end
end
@@ -19,10 +19,10 @@
ISEARCH_MODE_MAP.define_key(?\C-s, :isearch_repeat_forward)
ISEARCH_MODE_MAP.define_key(?\C-r, :isearch_repeat_backward)
ISEARCH_MODE_MAP.define_key(?\C-w, :isearch_yank_word_or_char)
ISEARCH_MODE_MAP.define_key(?\C-m, :isearch_exit)
ISEARCH_MODE_MAP.define_key(?\C-g, :isearch_abort)
-
+
ISEARCH_STATUS = {
forward: true,
string: "",
last_string: "",
start: 0,