Fixed lint error

This commit is contained in:
Malay Majithia 2017-10-17 05:16:04 +05:30
parent 18fc814d0a
commit b37e08407f
No known key found for this signature in database
GPG key ID: 52850166EEE05697

View file

@ -867,7 +867,9 @@ function ParagraphCtrl ($scope, $rootScope, $route, $window, $routeParams, $loca
exec: function(env, args, request) {
let iCursor = $scope.editor.getCursorPosition()
let currentLine = $scope.editor.session.getLine(iCursor.row)
let isAllTabs = currentLine.substring(0, iCursor.column - 1).split('').every(function(char) { return (char === '\t' || char === ' ') })
let isAllTabs = currentLine.substring(0, iCursor.column - 1).split('').every(function(char) {
return (char === '\t' || char === ' ')
})
// If user has pressed tab on first line char or if isTabCompletion() is false, keep existing behavior
// If user has pressed tab anywhere in between and editor mode is not %md, show autocomplete