mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-15 04:18:18 +00:00
refac
This commit is contained in:
parent
e5c80682b9
commit
a5abeb41ad
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ export function alignChangedLines(a: EditorView, b: EditorView, chunks: readonly
|
|||
const block = view.lineBlockAt(pos);
|
||||
const text = Array.isArray(block.type)
|
||||
? block.type.find((part) => part.type === BlockType.Text && part.from === pos)
|
||||
: block;
|
||||
: block.type === BlockType.Text ? block : null;
|
||||
return text?.from === pos ? text.top : null;
|
||||
};
|
||||
const align = (posA: number, posB: number) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue