Fix searching the last command output#4522
Conversation
|
In a previous change to fix mark duplication, some code was removed. |
|
After I added the code back in, I could get the command output normally after resizing the window. I did not submit this part yet. Maybe need to look at the previous fix first. I found that the prompt mark appears to be copied. |
|
Not really, it has nothing to do with the previous fix. I pushed a new commit and checked the continued attribute. Please let me know if there is anything missed. |
|
I wont be able to review this till tomorrow, however I think you should consider adding some tests for it as this is relatively easily testable and fairly complex. See the test_prompt_marking() function |
|
Sure, I'll add more tests. |
|
You are welcome to send PRs with more tests, if you need help getting |
652d284 to
30b81d9
Compare
When searching the output of the last command executed, if scrollback has been scrolled,
then the start point is actually outside (below) the screen and the number of scrolled lines needs to be added.
That's my bad. I don't know how this was slipped through. :(
Please review, thank you.