Commits

Evgeny Podjachev  committed 933cb6b

Replaced vim.eval by vim.bindeval.

  • Participants
  • Parent commits 8df914b

Comments (0)

Files changed (2)

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

 	
 	vim.command("let s:filtered_file_list=[]")
 	ffl = vim.bindeval('s:filtered_file_list')
-	ffl.extend([vim.List([fn[1][0], fn[1][1]]) for fn in fileList])
+	ffl.extend([(fn[1][0], fn[1][1]) for fn in fileList])
 else:
 	vim.command("let s:filtered_file_list = s:file_list")