From 6f0ab8113ecf1100f6429cfab15d8a67fe7a97c7 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 30 Aug 2017 10:49:42 +0300 Subject: [PATCH] suppress reverting to a blank in auto-import on paste --- edit/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/edit/edit.js b/edit/edit.js index 1690b93f..d28b15f4 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -406,6 +406,7 @@ function setupCodeMirror(textarea, index) { event.preventDefault(); fromMozillaFormat(); $('#help-popup').codebox.setValue(text); + $('#help-popup').codebox.clearHistory(); $('#help-popup').codebox.markClean(); } if (editors.length === 1) {