1. Takeshi NISHIDA
  2. vim-fuzzyfinder

Commits

Takeshi NISHIDA  committed 44a40ba

changed switching mode

  • Participants
  • Parent commits 7a4eed2
  • Branches default

Comments (0)

Files changed (1)

File plugin/fuzzyfinder.vim

View file
  • Ignore whitespace
 endfunction
 
 function! g:FuzzyFinderMode.Base.on_insert_leave()
+  let line = getline('.')
   call s:OptionManager.restore_all()
   call s:WindowManager.deactivate()
   if exists('s:reserved_command')
   " switchs to next mode, or finishes fuzzyfinder.
   if exists('s:reserved_switch_mode')
     let m = self.next_mode(s:reserved_switch_mode < 0)
-    call m.launch('', self.partial_matching, self.prev_bufnr, self.tag_files)
+    call m.launch(self.remove_prompt(line), self.partial_matching, self.prev_bufnr, self.tag_files)
     unlet s:reserved_switch_mode
   endif
 endfunction