浏览代码

HUE-8037 [editor] Restore cursor position for query history only

Romain Rigaux 7 年之前
父节点
当前提交
6b91a41
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -298,7 +298,7 @@ var EditorViewModel = (function() {
     });
 
     // Ace stuff
-    self.aceCursorPosition = ko.observable(snippet.aceCursorPosition);
+    self.aceCursorPosition = ko.observable(notebook.isHistory() ? snippet.aceCursorPosition : null);
 
     var aceEditor = null;