I observe that, under some particular conditions, the behavior of the history navigation in the qtconsole breaks.
Typically, if I type a letter, say 'a', and then press the up arrow key, IPython only shows the items in the history that start with that letter. However, under some conditions this behavior stop working.
The phenomenon can be observed by typing the following in a qtconsole instance. (I am just showing what I type, not the IPython output):
b C-p C-a C-k a C-p
Here 'Enter' corresponds to pressing the enter key, and C-x corresponds to pressing Ctrl and the 'x' key.
In this example, I expect that, after pressing C-p the last time, I should see 'a=1' in the prompt (that's what I see after doing this in a terminal IPython instance), however, I see 'b=2' in the prompt.
I have the same issue, when I do ctrl-k on part of line, prefix history navigating no longer works
If either of you could test #2819, I would appreciate the feedback.
@minrk #2819 fix the behavior described in this issue. However, the following doesn't work:
a = 1 'Enter'
b = 2 'Enter'
[i for i in range(3)] 'Enter'
C-p C-p C-a C-k
Instead of seeing [i for i in range(3)], I see a = 2.
[i for i in range(3)]
a = 2