nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] after an external spell check, the mark has moved


From: Benno Schulenberg
Subject: [Nano-devel] after an external spell check, the mark has moved
Date: Sat, 14 Mar 2015 21:36:36 +0100

Hello all,

When the mark is on, and the current line contains one or more tabs
before the cursor, then the mark is moved backward several positions
after each call of an external spell checker.

(I'm using «set speller "aspell -x -c"» in my .nanorc.)

To reproduce, start nano and type into the empty buffer:
aa<Tab>bb cc
Then type:
<Home> M-A <End> ^T x
See how the cursor has moved back five positions, from just after
the cc to the first b of the bb.

Somehow for repositioning the mark it counts a tab as one position
instead of the one to seven it actually is. The above five positions
back are the eight positions of the tab minus the two a-s and the
tab character itself.

(Also reported as https://savannah.gnu.org/bugs/?44542 .)


I'm CC'ing you, Mark, because you have some experience with
putting back the cursor when tabs are involved.

Benno

-- 
http://www.fastmail.com - Choose from over 50 domains or use your own




reply via email to

[Prev in Thread] Current Thread [Next in Thread]