From a93d549be1a71476d664ff07dad4cf4d836a05ee Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 11 Jun 2021 16:21:12 +0200 Subject: [PATCH] Locator: Interpret file paths verbatim with "Open and Create" When typing "f /tmp/test.txt:20" in locator, it would show "Open and Create /tmp/test.txt:20", but then ask if "/tmp/test.txt" shall be created. Make the "Open and Create" take the text verbatim, so it creates "/tmp/ test.txt:20". Specifying a line/column for an empty file doesn't make sense, and otherwise files with this file name cannot be created. Change-Id: Ibdd37bfb51518b3077037e7017a759ec0fe116fa Reviewed-by: David Schulz --- src/plugins/coreplugin/locator/filesystemfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp index 0ddf8dd8830..978ea9971e0 100644 --- a/src/plugins/coreplugin/locator/filesystemfilter.cpp +++ b/src/plugins/coreplugin/locator/filesystemfilter.cpp @@ -152,7 +152,7 @@ QList FileSystemFilter::matchesFor(QFutureInterface