filesystem: be case insensitive when selecting files by fid (HEX)

The file identifier (and allso application ids for ADFs), are
hexadecimal. We should be case insensitive when accepting hex
identifiers but file names should still be full matched.

Change-Id: Ibe283a108ddc9058af77c823b7222db555e1e0f6
Related: OS#4963
This commit is contained in:
Philipp Maier 2021-03-11 14:29:37 +01:00 committed by laforge
parent 47236500fe
commit 7744b6e9d1
1 changed files with 2 additions and 0 deletions

View File

@ -580,6 +580,8 @@ class RuntimeState(object):
def select(self, name, cmd_app=None):
"""Change current directory"""
sels = self.selected_file.get_selectables()
if is_hex(name):
name = name.lower()
if name in sels:
f = sels[name]
# unregister commands of old file