Commit e2e13113 authored by ThorbenQuast's avatar ThorbenQuast
Browse files

Merge

parents bd89a6f9 61a0bab0
......@@ -132,13 +132,13 @@ define(["jquery", "emitter"], function($, Emitter) {
//key == file name
getCookieKey: function() {
var key = this.view.editor.path;
var key = this.view.getState("path");
return key ? key.split("/").pop() : null;
},
setDefault: function() {
if (this.view.editor && this.view.editor.path) {
var fileExtension = this.view.editor.path.match(/\.(.+?)$/);
if (this.view.editor && this.view.getState("path")) {
var fileExtension = this.view.getState("path").match(/\.(.+?)$/);
if (fileExtension) {
fileExtension = fileExtension[1];
for (var i in this.commandlineTemplates) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment