yank/delete the first sentence of a paragraph includes the empty line above the paragraph
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
yank/delete the first sentence of a paragraph (yis/dis) includes the empty line above the paragraph.
To Reproduce
Below is an example paragraph:
How are you doing?
Yank/Delete this line with yis/dis. But it also copies/cuts the above empty line. There is no issue with the other sentences.
And the result I got with 'dis' (on Windows 10 and Ubuntu 18.04):
How are you doing?
But it also copies/cuts the above empty line. There is no issue with the other sentences.
Expected behavior
The expected result for the delete operator:
How are you doing?
But it also copies/cuts the above empty line. There is no issue with the other sentences.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VSCodeVim using the paragraph and yis/dis commands described in the report, including the empty line before the first sentence. Trace the sentence text-object and operator handling; done means the first sentence no longer includes that preceding empty line while other sentences retain their current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100