projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
205bf77
)
src/Palete/Roo.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 28 May 2015 11:25:40 +0000
(19:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 28 May 2015 11:25:40 +0000
(19:25 +0800)
src/Palete/Roo.vala
patch
|
blob
|
history
diff --git
a/src/Palete/Roo.vala
b/src/Palete/Roo.vala
index
b895f4d
..
1e12565
100644
(file)
--- a/
src/Palete/Roo.vala
+++ b/
src/Palete/Roo.vala
@@
-241,9
+241,9
@@
namespace Palete {
if (complete_string.index_of(".",0) < 0) {
// string does not have a '.'
// offer up this / Roo / javascript keywords... / look for var string = .. in the code..
if (complete_string.index_of(".",0) < 0) {
// string does not have a '.'
// offer up this / Roo / javascript keywords... / look for var string = .. in the code..
- for(var i = 0; i < JsRender.Lang.match_strings ; i++) {
+ for(var i = 0; i < JsRender.Lang.match_strings
.size
; i++) {
var str = JsRender.Lang.match_strings.get(i);
var str = JsRender.Lang.match_strings.get(i);
- if (str.index_of(complete_string,0) == 0
) {
+ if (str.index_of(complete_string,0) == 0
&& complete_string != str) { // should we ignore exact matches... ???
ret.append(new SourceCompletionItem (str, str, null, "javascript : " + str));
}
}
ret.append(new SourceCompletionItem (str, str, null, "javascript : " + str));
}
}