Skip to content

Don't include added delimiters in "that" mark #202

Open
@pokey

Description

@pokey

The problem

In the following file

hello
world

Calling the following two commands

  1. "bring line harp to after whale"
  2. "indent that"

Results in the following

hello
    world
    hello

It should be

hello
world
    hello

The solution

We add support in our selection update tracker code for updating the range for an edit, so that the client can determine the final range of their edit range, after the edits are applied. The "bring" code will then make it so that each insertion which is not a delimiter is tracked, and set the "that" mark to the list of these insertions.

  • Also highlight just these insertions rather than highlighting the delimiters

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions