mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Fix for bug 60144 -- Final fix for paths with whitepsaces. The test was not finding the index of the whitespace quite right on Linux. Addressed and fixed.
This commit is contained in:
parent
69a7699f8c
commit
00f6c5f146
1 changed files with 1 additions and 2 deletions
|
@ -498,9 +498,8 @@ public class FileListControl {
|
|||
if (browseType == IOption.BROWSE_DIR ||
|
||||
browseType == IOption.BROWSE_FILE) {
|
||||
// Check for spaces
|
||||
int firstWhitespace = input.indexOf("\\s"); //$NON-NLS-1$
|
||||
int firstWhitespace = input.indexOf(" "); //$NON-NLS-1$
|
||||
int firstBackslash = input.indexOf("\\"); //$NON-NLS-1$
|
||||
// String[] segments = input.split("\\s"); //$NON-NLS-1$
|
||||
if (firstWhitespace != -1 || firstBackslash != -1) {
|
||||
// Double-quote paths with whitespaces
|
||||
input = "\"" + input + "\""; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
|
Loading…
Add table
Reference in a new issue