Skip to content

Commit d3ac0f0

Browse files
he-hesceusiems
authored andcommitted
[gui] [ScriptingConsole] Fix so that history position is correct after call to setHistory so that pressing up-arrow works and shows last history item.
1 parent 9ea0fcf commit d3ac0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/PythonQtScriptingConsole.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public Q_SLOTS:
7373
QStringList history() { return _history; }
7474

7575
//! set history
76-
void setHistory(const QStringList& h) { _history = h; _historyPosition = 0; }
76+
void setHistory(const QStringList& h) { _history = h; _historyPosition = h.count(); }
7777

7878
//! clear the console
7979
void clear();

0 commit comments

Comments
 (0)