Thread: CFI Parser
View Single Post
Old 01-17-2019, 10:51 AM   #10
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
Hi, Kovid.

Thank you very much for the code. It's working perfectly.
Altough, I've noticed an odd behavior that I don't know if it is by design.

Steps to reproduce:

1) My Editor is set to wrap long lines.
2) When I click on a partial CFI, it goes to the beginning of the line referenced, as expected.
3) When the CFI has an ID for the target tag, then it will try to place the cursor on that ID. Nice.
4) But... it only works if the ID is in the first "line".
5) If I resize the code window, and the ID attribute goes to the second "line", then it will place the cursor at the beginning of the real line, like there was no ID.
thiago.eec is offline   Reply With Quote