Replace emoticon before a newline

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-04-18 10:02:50 +02:00
parent 3edf05d38d
commit 609196a240
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 17 additions and 5 deletions

View file

@ -39,6 +39,13 @@ export default class Range {
});
}
moveEndBackwards(delta: number) {
this._end = this._end.backwardsWhile(this.model, () => {
delta -= 1;
return delta >= 0;
});
}
trim() {
this._start = this._start.forwardsWhile(this.model, whitespacePredicate);
this._end = this._end.backwardsWhile(this.model, whitespacePredicate);