diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-26 00:33:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 00:33:19 +0100 |
commit | 505dd0b4d327d908e131930f45b8984426836833 (patch) | |
tree | 36c9a58d9f32eed4562b624c28b7b73759dd79a2 | |
parent | 994b541f5c91651f7cf25776abddd66159f4886b (diff) | |
parent | 764d5452fe1c19c89a34bd313c9cb21fa883a1b6 (diff) | |
download | ranger-505dd0b4d327d908e131930f45b8984426836833.tar.gz |
Merge pull request #1452 from s-n-g/master
fix Ctrl+Space crash
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index 14f1e0e4..b507a5c2 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -14,7 +14,7 @@ REVERSE_ADDCH_ARGS = sys.version[0:5] == '3.4.0' def _fix_surrogates(args): return [isinstance(arg, str) and arg.encode('utf-8', 'surrogateescape') - .decode('utf-8', 'replace') or arg for arg in args] + .decode('utf-8', 'replace').replace(u'\u0000', '') or arg for arg in args] class CursesShortcuts(SettingsAware): |