diff --git a/copyparty/web/util.js b/copyparty/web/util.js index aa88ea6f..ffd4e7b0 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -1074,7 +1074,9 @@ function repl_load() { }; getpres(); tb.value = last_repl; - + setTimeout(function () { + tb.setSelectionRange(0, tb.value.length, "forward"); + }, 10); } function repl(e) { ev(e);