[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] the highlighting of text to be replaced is too short
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] the highlighting of text to be replaced is too short |
Date: |
Sun, 10 Feb 2019 10:30:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Thanks for reporting the bug. (But you should have started a new
thread, a new message, not simply answer to an unrelated one.)
Op 09-02-19 om 14:38 schreef Liu Hao:
> I couldn't find the original context for commit
> 5618189643f285d40f7c92048e59813512d86b48
A link to the context is right there in the commit message:
"This fixes https://savannah.gnu.org/bugs/?55620."
> but it apparently breaks something:
>
> 1. Run 'nano'. This creates a new file.
> 2. Type 'abcdef'.
> 3. Press *Ctrl-\* to enter search & replace mode.
> 4. Type 'abc' in the *Search (to replace)* bar and press *Enter*.
> 5. Type arbitrary text or nothing at all in the *Replace with* bar
> and press *Enter*.
> 6. Now the character sequence 'ab' is highlighted rather than 'abc'
> before this commit. This is erroneous as 'ab' does not match 'abc'.
Indeed. The bug has already been reported by David Ramsey:
https://savannah.gnu.org/bugs/?55680
And I've uploaded a patch for it:
https://savannah.gnu.org/support/download.php?file_id=46219
If you could test that patch and report your findings...
Benno
signature.asc
Description: OpenPGP digital signature
Re: [Nano-devel] [PATCH 1/2] display: replace the "$" continuation character with ">" and "<", Benno Schulenberg, 2019/02/11
Re: [Nano-devel] [PATCH 1/2] display: replace the "$" continuation character with ">" and "<", Benno Schulenberg, 2019/02/12