Skip to content

Marks are moved by gcO #219

@PowerUser64

Description

@PowerUser64

Incorrect (current) behavior

When running gcO on a line that has a mark on it, the mark will be moved to the line the comment is being placed on.

Example:

  1. Put this code in a .cpp file (to set comment string automatically) and put your cursor on the f in foo:
int foo = 5;
  1. Place mark m on the f in foo (mm)
  2. Run gcO and type " hello". You should now have this:
// hello
int foo = 5;
  1. However, mark m is also now on the e in hello. Test this by doing `m to jump to the character the mark is on.

Expected behavior

The expected behavior is that the mark should remain on the f in foo that it was placed on to begin with.

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