Add column restriction
This commit is contained in:
@@ -644,7 +644,9 @@ export class SelectionService extends Disposable implements ISelectionService {
|
|||||||
if (this._model.selectionEnd[1] < buffer.lines.length) {
|
if (this._model.selectionEnd[1] < buffer.lines.length) {
|
||||||
const line = buffer.lines.get(this._model.selectionEnd[1]);
|
const line = buffer.lines.get(this._model.selectionEnd[1]);
|
||||||
if (line && line.hasWidth(this._model.selectionEnd[0]) === 0) {
|
if (line && line.hasWidth(this._model.selectionEnd[0]) === 0) {
|
||||||
this._model.selectionEnd[0]++;
|
if (this._model.selectionEnd[0] < this._bufferService.cols) {
|
||||||
|
this._model.selectionEnd[0]++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user