Skip to content

Commit

Permalink
Re #27083. Alt+L should still work for selection endcolumn 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 12, 2018
1 parent ad72078 commit 96040c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/find/findController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class CommonFindController extends Disposable implements editorCommon.IEd
} else {
let selection = this._editor.getSelection();
if (selection.endColumn === 1 && selection.endLineNumber > selection.startLineNumber) {
selection = selection.setEndPosition(selection.endLineNumber - 1, 1);
selection = selection.setEndPosition(selection.endLineNumber - 1, this._editor.getModel().getLineMaxColumn(selection.endLineNumber - 1));
}
if (!selection.isEmpty()) {
this._state.change({ searchScope: selection }, true);
Expand Down

0 comments on commit 96040c8

Please sign in to comment.