Pārlūkot izejas kodu

Account for mid-line comments

Shane Kilkelly 9 gadi atpakaļ
vecāks
revīzija
bd88adb621

+ 1 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee

@@ -121,7 +121,7 @@ define [
 			end = change.end
 			range = new Range(end.row, 0, end.row, end.column)
 			lineUpToCursor = @editor.getSession().getTextRange(range)
-			if lineUpToCursor.slice(0, 1) == '%'
+			if lineUpToCursor.match(/.*%.*/)
 				return
 			commandFragment = getLastCommandFragment(lineUpToCursor)
 			# Check that this change was made by us, not a collaborator