Closed Aaronik closed 4 months ago
Looks good to me. I have no running instance of nvim currently tho. So I haven't tested it locally.
Thanks so much for working on it!
The bug also seems to be present in Optimize and Summarize windows (perhaps other windows too if there are more that I'm unaware of)
@v3ceban this seems to fix those as well, if my testing is correct. Can you test it out as well?
@Aaronik indeed, this pr solves the problem in other windows/popups too. Tested on Fedora 39 (x86_64) and Android/Termux (arm). Thanks for your contribution <3 Hope to see this merged soon!
Works on:
too.
@jackMort think this passes muster?
@jackMort if there's anything wrong with this, please let me know and I'll change it up :+1:
@jackMort @Moerliy here's another fix that fixes this bug in all invocations of the window, not just the first one, which yesterday's fix addressed.
It also renames one local variable for clarity.
The previous fix (#388) worked only for the first time the edit with instructions window was opened.
Now it works every time it's opened (at least up to however many times I tested it. Theoretically it could fail on the 10,000th time.)