diff --git a/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java b/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java index 4b96ffb40..0df02ce32 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java @@ -172,7 +172,7 @@ public class AssetCompletionProvider implements CompletionProvider { final int lineStartOffset = getRowFirstNonWhite(bDoc, caretOffset); final String line = bDoc.getText(lineStartOffset, caretOffset - lineStartOffset).trim(); //TODO: more intelligence! :) - if (line.endsWith(".loadModel(\"")) { + if (hasLastCommand(line, ".loadModel(\"")) { return AssetType.Model; } else if (hasLastCommand(line, ".loadMaterial(\"")) { return AssetType.Material;