Commit 260b3d47 authored by Eric Armbruster's avatar Eric Armbruster 🍁 Committed by Christoph Cullmann
Browse files

Fix the tabswitcher prefix in an edge case

When there is only files from the same folder, one of them will show the whole path as prefix without this.
parent bac8b59f
Pipeline #235681 passed with stage
in 13 minutes and 28 seconds
......@@ -98,6 +98,8 @@ void post_process(FilenameList &data)
if (len > 0) { // only assign in case item.fullPath() is not empty
// "PREFIXPATH/REMAININGPATH/BASENAME" --> "REMAININGPATH"
item.displayPathPrefix = item.fullPath().mid(prefix_length, len);
} else {
item.displayPathPrefix.clear();
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment