@lvce-editor/editor-worker 19.30.11 → 19.30.12
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 +1 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -4367,7 +4367,7 @@ const getVisibleDiagnostics = async (editor, diagnostics) => {
|
|
|
4367
4367
|
endColumnIndex,
|
|
4368
4368
|
rowIndex
|
|
4369
4369
|
} = diagnostic;
|
|
4370
|
-
const columnDelta = endColumnIndex - columnIndex;
|
|
4370
|
+
const columnDelta = Math.max(1, endColumnIndex - columnIndex);
|
|
4371
4371
|
const diagnosticWidth = columnDelta * charWidth;
|
|
4372
4372
|
const endLineDifference = 0;
|
|
4373
4373
|
const halfCursorWidth = 0;
|