Skip to content

wgrep doesn't work in ivy-occur-grep-mode if the original line contains tabs #1468

@binshengliu

Description

@binshengliu

Sample file:

\tabc

Steps:

  1. Call swiper
  2. Type abc
  3. Call ivy-occur
  4. Call ivy-wgrep-change-to-wgrep-mode
  5. Make some modification to the line
  6. Call wgrep-finish-edit

Result:

The modification is not applied to the buffer.

I looked into the code and found in swiper--line, tabs are replaced with whitespaces. wgrep would complain "Buffer was changed after grep." in wgrep-apply-change.

I tried to remove the tab replacing code and wgrep works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions