From bfaa4af363f26ac919f6ea4efa8694fade62f308 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 23 Jul 2024 15:23:21 -0700 Subject: [PATCH] fixed bug in new doc --- static/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/application.js b/static/application.js index bf126f4..78d5e73 100644 --- a/static/application.js +++ b/static/application.js @@ -185,6 +185,7 @@ haste.prototype.newDocument = function(hideHistory) { this.$textarea.val('').show('fast', function() { this.focus(); }); + this.selectedLines = { startLine: null, endLine: null }; this.removeLineNumbers(); };