mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Fixed delete to beginning and end of line
This commit is contained in:
parent
63242307d7
commit
5e052d0f47
@ -657,7 +657,7 @@ module.exports = class Selection {
|
||||
prevRange, '', pick(options, 'undo', 'normalizeLineEndings')
|
||||
);
|
||||
} else {
|
||||
const startOfLinePoint = new Point(this.cursor.getScreenRow(), 0);
|
||||
const startOfLinePoint = new Point(this.cursor.getBufferRow(), 0);
|
||||
const prevRange = new Range(startPoint, startOfLinePoint);
|
||||
this.editor.buffer.setTextInRange(
|
||||
prevRange, '', pick(options, 'undo', 'normalizeLineEndings')
|
||||
@ -692,7 +692,7 @@ module.exports = class Selection {
|
||||
this.delete(options);
|
||||
} else {
|
||||
this._deleteToNextPoint(
|
||||
new Point(this.cursor.getScreenRow(), Infinity),
|
||||
new Point(this.cursor.getBufferRow(), Infinity),
|
||||
options
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user