diff options
Diffstat (limited to 'src/AutoComplete.cxx')
| -rw-r--r-- | src/AutoComplete.cxx | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index c3ec29c3c..75e26fe28 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -15,6 +15,7 @@ AutoComplete::AutoComplete() {  	active = false;  	posStart = 0;  	strcpy(stopChars, ""); +	separator = ' ';  }  AutoComplete::~AutoComplete() { @@ -44,6 +45,14 @@ bool AutoComplete::IsStopChar(char ch) {  	return ch && strchr(stopChars, ch);  } +void AutoComplete::SetSeparator(char separator_) { +	separator = separator_; +} + +char AutoComplete::GetSeparator() { +	return separator; +} +  int AutoComplete::SetList(const char *list) {  	int maxStrLen = 12;  	lb.Clear(); @@ -53,7 +62,7 @@ int AutoComplete::SetList(const char *list) {  		char *startword = words;  		int i = 0;  		for (; words && words[i]; i++) { -			if (words[i] == ' ') { +			if (words[i] == separator) {  				words[i] = '\0';  				lb.Append(startword);  				maxStrLen = Platform::Maximum(maxStrLen, strlen(startword)); | 
