mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Merge pull request #4300
dff0e3b
[Qt] Improve rpc console history behavior (Cozz Lovan)
This commit is contained in:
commit
6741837233
1 changed files with 2 additions and 2 deletions
|
@ -415,8 +415,8 @@ void RPCConsole::on_lineEdit_returnPressed()
|
|||
{
|
||||
message(CMD_REQUEST, cmd);
|
||||
emit cmdRequest(cmd);
|
||||
// Truncate history from current position
|
||||
history.erase(history.begin() + historyPtr, history.end());
|
||||
// Remove command, if already in history
|
||||
history.removeOne(cmd);
|
||||
// Append command to history
|
||||
history.append(cmd);
|
||||
// Enforce maximum history size
|
||||
|
|
Loading…
Add table
Reference in a new issue