mirror of
https://github.com/fbarrca/obsidian-inlineAI.git
synced 2026-07-22 11:50:24 +00:00
Fix bug with diffView. Initialize currentPos with context value in generateDiffView function
This commit is contained in:
parent
89639f389c
commit
968df3e228
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ function generateDiffView(state: EditorState): DecorationSet {
|
|||
|
||||
// Initialize RangeSetBuilder for efficient decoration construction
|
||||
const builder = new RangeSetBuilder<Decoration>();
|
||||
let currentPos = 0;
|
||||
let currentPos = context?.from ?? 0;
|
||||
|
||||
diffResult.forEach((part) => {
|
||||
const { added, removed, value } = part;
|
||||
|
|
|
|||
Loading…
Reference in a new issue