@lvce-editor/editor-worker 19.61.1 → 19.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorWorkerMain.js +2 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -4913,11 +4913,11 @@ const getVisibleDiagnostics = async (editor, diagnostics) => {
|
|
|
4913
4913
|
endColumnIndex,
|
|
4914
4914
|
rowIndex
|
|
4915
4915
|
} = diagnostic;
|
|
4916
|
-
const columnDelta = Math.max(1, endColumnIndex - columnIndex);
|
|
4917
|
-
const diagnosticWidth = columnDelta * charWidth;
|
|
4918
4916
|
const endLineDifference = 0;
|
|
4919
4917
|
const halfCursorWidth = 0;
|
|
4920
4918
|
const x = await getX(lines[rowIndex], columnIndex, fontWeight, fontSize, fontFamily, isMonospaceFont, letterSpacing, tabSize, halfCursorWidth, width, charWidth, endLineDifference);
|
|
4919
|
+
const endX = await getX(lines[rowIndex], endColumnIndex, fontWeight, fontSize, fontFamily, isMonospaceFont, letterSpacing, tabSize, halfCursorWidth, width, charWidth, endLineDifference);
|
|
4920
|
+
const diagnosticWidth = Math.max(charWidth, endX - x);
|
|
4921
4921
|
const visualRow = viewLineIndices ? getVisualRowForDocumentRow$1(rowIndex, viewLineIndices) : rowIndex;
|
|
4922
4922
|
const y = (visualRow - startVisualRow) * rowHeight;
|
|
4923
4923
|
visibleDiagnostics.push({
|