Replace emoticon before a newline
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
3edf05d38d
commit
609196a240
2 changed files with 17 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue