-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misaligned Literate Idris highlightling in idris-mode
#480
Comments
Thanks @ska80, I will double check my configs to see if there is something messing with my buffer. |
I do have this issue, did you solve it? |
Seems to be down to this function: (defun idris-highlight-column (idris-col)
"Compute the Emacs position offset of the Idris column IDRIS-COL, for highlighting.
In particular, this takes bird tracks into account in literate Idris."
(+ idris-col (if (idris-lidr-p) 1 -1))) Changing it to this "fixes" the offset for me. (defun idris-highlight-column (idris-col)
"Compute the Emacs position offset of the Idris column IDRIS-COL, for highlighting.
In particular, this takes bird tracks into account in literate Idris."
(+ idris-col (if (idris-lidr-p) -1 -1))) Maybe something in the back end changed for |
@fabianhjr @andrewmcveigh I too have this issue. Was there some resolution found before the ticket was closed? I'm using Spacemacs with the idris layer. I can fix it the same way @andrewmcveigh suggested. |
I don't remember how I fixed it but it was an issue on my end. |
I just upgraded idris-mode from melpa and see the same problem. evaluating the code by @andrewmcveigh also fixes it. |
Steps to Reproduce
idris-load-file
in Emacs withidris-mode
Expected Behavior
Correct highlighting
Observed Behavior
Highlighting shifts 2 places to the left. (Corresponding to the
>
in the editor)Software Info
idris --version
: 1.3.0-git:PREemacs --version
: GNU Emacs 26.1Related: idris-lang/Idris-dev#1736
Crosspost from idris-lang/Idris-dev#4478
The text was updated successfully, but these errors were encountered: