Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
);
}
Expand Down