tamago324 / LeaderF-filer

📂 LeaderF file explorer
Apache License 2.0
39 stars 5 forks source link

messy code when directory is non-ascii #2

Closed Yggdroot closed 4 years ago

Yggdroot commented 4 years ago

The issue happens only when using python2.

diff --git a/autoload/leaderf/python/filerExpl.py b/autoload/leaderf/python/filerExpl.py
index ead9c2b..8db7e58 100644
--- a/autoload/leaderf/python/filerExpl.py
+++ b/autoload/leaderf/python/filerExpl.py
@@ -46,7 +46,7 @@ class FilerExplorer(Explorer):
         self._contents = dict()

         contents = {
-            f: {
+            lfEncode(f): {
                 "isdir": os.path.isdir(os.path.join(self._cwd, f)),
                 "fullpath": os.path.join(self._cwd, f),
             }

This may help.

tamago324 commented 4 years ago

Thank you! Fixed.