tsoding / something

Finally something
MIT License
53 stars 11 forks source link

Bug: Console::History::up() and ...down() lag one step behind #333

Closed JaroslawWiosna closed 3 years ago

JaroslawWiosna commented 3 years ago

Reproduced in 88f23024cad76c90614ecb6ddccff469cef1966c

Steps to reproduce

  1. open console
  2. issue a couple of commands, like:
1
2
3
4
history
  1. press UP four times

You should now see 2, as expected:

obraz

  1. press DOWN:
    • expected behaviour: You should see 3, which was issued after 2
    • observed behaviour: 1, like UP was pressed. Then, you have to press DOWN again to see 3
rexim commented 3 years ago

@JaroslawWiosna tried to address the problem in #337. Please check out the latest version when you get a chance and close the issue if the problem is fixed.