Commits

Evgeny Podjachev  committed 5530b47

Fixed work on some vim builds.

  • Participants
  • Parent commits 36d6033
  • Tags v0.3.3

Comments (0)

Files changed (2)

File plugin/fastfileselector.vim

 " 				search string. Autocompletion using history also works by
 " 				<Ctrl-X><Ctrl-U>.
 "
-" Version:		0.3.2
+" Version:		0.3.3
 "
-" ChangeLog:	0.3.2:	Support of vim builds with enabled python3 support.
+" ChangeLog:	0.3.3:	Fixed work on some vim builds.
+"				0.3.2:	Support of vim builds with enabled python3 support.
 "
 "				0.3.1:	Removed message "press any key to continue" in some cases. Thanks to Dmitry Frank.
 "						Fixed error on closing FFS window in some cases. Thanks to Dmitry Frank.

File plugin/fastfileselector/gen_file_list.py

 import vim
 
 if int(vim.eval("g:FFS_ignore_case")):
-	caseMod = str.lower
+	# don't replace by str.lower as on some builds you will get unicode strings
+	caseMod = lambda x: x.lower()
 else:
 	caseMod = lambda x: x