Skip to content

Inconsistent word command behavior #2315

@doublep

Description

@doublep

After installing the extension, with the following code (| indicates the cursor) I get this behavior:

|int x;
int y;

M-f

int| x;
int y;

M-f

int x|;
int y;

M-f

int x;|
int y;

This is inconsistent with Emacs that doesn't treat ';' as a word.

But also:

|int x;
int y;

M-d

| x;
int y;

M-d

|;
int y;

M-d

| y;

I.e. M-d doesn't stop after deleting ';' and continues to eat 'int' on the next line too. This is consistent with how Emacs behaves, but not consistent with the extension's M-f.

But if we write things into one line (int x; int y;) behavior of M-d changes:

|int x; int y; [M-d] -> | x; int y; -> |; int y; -> | int y;

i.e. here it works like M-f from the extension and not how Emacs...

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