nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00174
Re: [Question #96892]: cursor jumps when entering chunk
Question #96892 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/96892
rradonic posted a new comment:
i'm using nxhtml 2.05. i downloaded the .zip from
http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-2.05-091202.zip.
i'm using ubuntu and emacs 23.1.1, the version in the ubuntu repos.
to reproduce:
1) open an .html.erb file containing some html and some ruby.
2) start with the cursor inside some html.
3) move the cursor to the right, until you get to the beginning of a ruby chunk. the ruby chunks start with <% or <%= and end with %>, so place the cursor on the < character.
expected behaviour:
the mode switches from nXhtml/eruby-nxhtml to Ruby/eruby-nxhtml, the cursor stays on the < character.
actual behaviour:
the mode switches from nXhtml/eruby-nxhtml to Ruby/eruby-nxhtml, the cursor jumps two characters to the right, positioning it after the % character.
something similar happens when i approach a ruby chunk from the right. i
move the cursor to the left until it's on the > character at the end of
a ruby chunk. the cursor will then jump two characters to the left,
positioning it before the % character.
--
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.