Skip to content
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

Wrong behavior when deleting text from inside an occurrence to end of line #53

Closed
bmag opened this issue Sep 29, 2015 · 2 comments
Closed

Comments

@bmag
Copy link

bmag commented Sep 29, 2015

With Emacs 24.5 and latest version of iedit, I experience weird behavior when the cursor is inside an occurrence and I delete the text from the cursor to the end of the line.

To reproduce:

    1. emacs -Q -L /path/to/iedit/directory
    1. M-: (require 'iedit)
    1. change contents of scratch buffer to this:
foobar qux
foobar qux
    1. move cursor to "b" in the first line
    1. M-x iedit-mode -> "foobar" in both lines is highlighted
    1. C-k (kill-line)

Expected result: buffer will look like this, with "foo" highlighted in both lines:

foo qux
foo qux

Actual result: iedit-mode is deactivated (nothing is highlighted), buffer looks like this:

foo
foobar qux

Original Issue reported by @jdwaterson here: syl20bnr/spacemacs#3193

@PierreR
Copy link

PierreR commented Nov 6, 2015

The same issue happens with c-w instead of c-k.

@victorhge
Copy link
Owner

The behavior is expected.

iedit-lib.el: 348
348: replacement. If this modification is going out of the
349: occurrence, it will abort Iedit mode."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants