[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
- [Nano-devel] after an external spell check, the mark has moved,
Benno Schulenberg <=
- Re: [Nano-devel] after an external spell check, the mark has moved, Mark Majeres, 2015/03/15
- Re: [Nano-devel] after an external spell check, the mark has moved, Benno Schulenberg, 2015/03/17
- Re: [Nano-devel] after an external spell check, the mark has moved, Mark Majeres, 2015/03/17
- Re: [Nano-devel] after an external spell check, the mark has moved, Benno Schulenberg, 2015/03/19
- Re: [Nano-devel] after an external spell check, the mark has moved, Mark Majeres, 2015/03/20
- Re: [Nano-devel] after an external spell check, the mark has moved, Benno Schulenberg, 2015/03/21
- Re: [Nano-devel] after an external spell check, the mark has moved, Mark Majeres, 2015/03/21
- [Nano-devel] compensating for changed length, Benno Schulenberg, 2015/03/21
- Re: [Nano-devel] compensating for changed length, Mark Majeres, 2015/03/22
- [Nano-devel] should a spell check clear the marked selection?, Benno Schulenberg, 2015/03/23