From 57c498f060f340654a980845f5cd4e641410a774 Mon Sep 17 00:00:00 2001 From: Nisarg Jhaveri Date: Sun, 14 Dec 2014 19:01:57 +0530 Subject: [PATCH] Set cursor at end in console while navigating with up/down key Signed-off-by: Nisarg Jhaveri --- js/console.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/console.js b/js/console.js index 7601768ec6..433337c336 100644 --- a/js/console.js +++ b/js/console.js @@ -582,6 +582,9 @@ var PMA_consoleInput = { if (queryString !== false) { PMA_consoleInput._historyCount = nextCount; PMA_consoleInput.setText(queryString, 'console'); + if (PMA_consoleInput._codemirror) { + editor.setCursor(editor.lineCount(), 0); + } event.preventDefault(); } }