Commits

Evgeny Podjachev committed 602c9f1 Merge

Merge branch '7.4_only'

  • Participants
  • Parent commits 5530b47, d238a2d

Comments (0)

Files changed (3)

File plugin/fastfileselector.vim

 let g:loaded_FAST_FILE_SELECTOR = 1
 
 " Check to make sure the Vim version 700 or greater.
-if v:version < 700
-  echo "Sorry, FastFileSelector only runs with Vim 7.0 and greater."
+if v:version < 704
+  echo "Sorry, FastFileSelector only runs with Vim 7.4 and greater."
   finish
 endif
 

File plugin/fastfileselector/gen_file_list.py

 	rootPath = rootPath.encode('utf-8')
 
 vim.command('let s:base_path_length=%d' % len(rootPath))
-vim.command('let s:file_list=[]')
-for fn in fileList:
-	vim.command('let s:file_list+=[["%s","%s"]]' % (fn[0].replace('\\', '\\\\'), (fn[1].replace('\\', '\\\\'))))
 
+vim.command('let s:file_list=[]')
+fl = vim.bindeval('s:file_list')
+fl.extend(fileList)

File plugin/fastfileselector/on_cursor_moved.py

 	fileList = [(check_symbols(x[0], smbs), x) for x in vim.eval(fileListVar)]
 	fileList = [x for x in fileList if operator.itemgetter(0)]
 	fileList.sort(key=operator.itemgetter(0, 1))
-
+	
 	vim.command("let s:filtered_file_list=[]")
-	for fn in fileList:
-		vim.command('let s:filtered_file_list+=[["%s","%s"]]' % (fn[1][0].replace('\\', '\\\\'), fn[1][1].replace('\\', '\\\\')))
+	ffl = vim.bindeval('s:filtered_file_list')
+	ffl.extend([(fn[1][0], fn[1][1]) for fn in fileList])
 else:
 	vim.command("let s:filtered_file_list = s:file_list")