Skip to content

Commit

Permalink
Merge pull request microsoft#78472 from microsoft/alex/release-78262
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima authored Aug 5, 2019
2 parents 0bd57ac + fa05b1e commit 4a03f7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/editor/browser/controller/mouseTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Range as EditorRange } from 'vs/editor/common/core/range';
import { HorizontalRange } from 'vs/editor/common/view/renderingContext';
import { ViewContext } from 'vs/editor/common/view/viewContext';
import { IViewModel } from 'vs/editor/common/viewModel/viewModel';
import { CursorColumns } from 'vs/editor/common/controller/cursorCommon';

export interface IViewZoneData {
viewZoneId: number;
Expand Down Expand Up @@ -410,7 +411,7 @@ class HitTestRequest extends BareHitTestRequest {
let mouseColumn = this.mouseColumn;
if (position && position.column < this._ctx.model.getLineMaxColumn(position.lineNumber)) {
// Most likely, the line contains foreign decorations...
mouseColumn = position.column;
mouseColumn = CursorColumns.visibleColumnFromColumn(this._ctx.model.getLineContent(position.lineNumber), position.column, this._ctx.model.getOptions().tabSize) + 1;
}
return new MouseTarget(this.target, type, mouseColumn, position, range, detail);
}
Expand Down

0 comments on commit 4a03f7e

Please sign in to comment.