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:13:51 +02:00
parent 3edf05d38d
commit 609196a240
2 changed files with 17 additions and 5 deletions
+7
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);