@fresh-editor/fresh-editor 0.3.8 → 0.3.10

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.
@@ -1046,7 +1046,9 @@ function processLineConceals(
1046
1046
  // the one-frame glitch where conceals are cleared but not yet rebuilt.
1047
1047
  editor.debug(`[mc] processLine clear+rebuild bytes=${byteStart}..${byteEnd} content="${lineContent.slice(0,40)}"`);
1048
1048
  editor.clearConcealsInRange(bufferId, byteStart, byteEnd);
1049
- editor.clearOverlaysInRange(bufferId, byteStart, byteEnd);
1049
+ // Only clear our own emphasis overlays — clearing ALL overlays in the range
1050
+ // would also wipe editor-owned overlays like LSP diagnostics (issue #2146).
1051
+ editor.clearOverlaysInRangeForNamespace(bufferId, "md-emphasis", byteStart, byteEnd);
1050
1052
 
1051
1053
  const cursorOnLine = cursors.some(c => c >= byteStart && c <= byteEnd);
1052
1054
  // Strict version: excludes the boundary at byteEnd so that the cursor