diff --git a/command_prompt.py b/command_prompt.py index 3cbe64f..f935a8c 100644 --- a/command_prompt.py +++ b/command_prompt.py @@ -266,6 +266,10 @@ class Command_prompt(Label): # display in status bar self.app.status_bar.raw_text="" for path in paths: - self.app.status_bar.raw_text+="\""+path+"\" " + name=os.path.basename(path) + # add quotes if needed + if " " in name: + name="\""+name+"\"" + self.app.status_bar.raw_text+=name+" " self.app.status_bar.draw() return common_substr(paths)[end:]