ijavascript
ijavascript copied to clipboard
Bad code completion in cells with multiple occurances of the text to match
Rather than the position reported from the frontend. This leads to interesting behavior:
Totally valid: ✅
Also valid, deeper in: ✅
My cursor is at the bottom, yet it's "completing" on a prior occurence of console: ❌
It looks to me like a frontend issue. I can't reproduce it with IPython 1.2.1. What frontend version are you using?
This is in nteract.
Sorry @rgbkrk , now that I've read your issue again, I get it. Definitely, a bug in ijavascript.
$$.html works around the issue
https://github.com/n-riesco/nel/blob/9dfd47f15d8be83ee1e313d512a34180c99003c9/lib/nel.js#L932-L1055
https://github.com/n-riesco/nel/blob/9dfd47f15d8be83ee1e313d512a34180c99003c9/lib/nel.js#L1311-L1387