mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed lint error
This commit is contained in:
parent
18fc814d0a
commit
b37e08407f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue