1
0
Fork 0
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:
Sean Evoy 2004-06-04 22:43:53 +00:00
parent 69a7699f8c
commit 00f6c5f146

View file

@ -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$