mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 06:20:20 -05:00
refac
This commit is contained in:
1 parent
e5c80682b9
commit
a5abeb41ad
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user