From 999253a7786f85f6e0fc1c80fbeb66775d5727a5 Mon Sep 17 00:00:00 2001
From: Magnus Hovland Hoff <maghoff@gmail.com>
Date: Sun, 16 Sep 2018 12:16:03 +0200
Subject: [PATCH] Place text caret at end of text to reduce visual distraction
 caused by stuff moving around

---
 assets/script.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/assets/script.js b/assets/script.js
index 6c8820a..482ca29 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -77,6 +77,7 @@ function openEditor() {
 
     autosizeTextarea(textarea, shadow);
 
+    textarea.setSelectionRange(textarea.value.length, textarea.value.length);
     textarea.focus();
 
     if (hasBeenOpen) return;