Permalink
Browse files

Make search term immutable after pressing enter but ghost the term

  • Loading branch information...
1 parent f6b82fb commit 985bfd8067920af1b7f11c1740f2dbb9a4defd0e @mason-larobina mason-larobina committed Aug 7, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 rc.lua
View
@@ -294,6 +294,9 @@ function attach_window_signals(w)
w:search(string.sub(text, 2), (string.sub(text, 1, 1) == "/"))
-- User doesn't want to return to start position
w.search_start_marker = nil
+ w:set_mode()
+ w.ibar.prompt.text = text
+ w.ibar.prompt:show()
end
end)
end

0 comments on commit 985bfd8

Please sign in to comment.