Skip to content

Multi line substitute swapping sometimes doesn't work correctly #1

Open
@svermeulen

Description

@svermeulen

Given the following buffer with cursor at ^

^one
two
three
four

jim
joe
frank
fred

Execute yjjjyj to copy two multiline yanks to yoink history. Move cursor:

one
two
three
four

^jim
joe
frank
fred

Hit sj<c-n> to perform a substitute then swap. Notice the buffer now appears as:

one
two
three
four

jim
one
two
fred

When it should be:

one
two
three
four

one
two
frank
fred

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