From d15ec126c76e698640ee5b4a884a6b747e728e2e Mon Sep 17 00:00:00 2001 From: Bruno Bottazzini Date: Wed, 20 Apr 2016 14:26:30 -0300 Subject: [PATCH] Unset highlight syntax when a folder is selected When a folder is selected the message "Please select a file to view its contents" appears with mixed colors. With this patch this message appears with white color only. Signed-off-by: Bruno Bottazzini --- client/js/controllers/editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/js/controllers/editor.js b/client/js/controllers/editor.js index 26f8b62..a9a358e 100644 --- a/client/js/controllers/editor.js +++ b/client/js/controllers/editor.js @@ -110,6 +110,7 @@ }); $scope.root = false; } else { + editor.getSession().setMode(); if (data.node.parent === "#") { $scope.root = true; $scope.setEditorContent('Please select a file to view its contents', previousContent, filePath);