mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-29 08:58:53 -03:00
fix(autocomplete): treat newline as a hard boundary
This commit is contained in:
@@ -676,7 +676,8 @@ class AutoComplete {
|
||||
_getHardBoundaryStart(beforeCursor = '') {
|
||||
const lastComma = beforeCursor.lastIndexOf(',');
|
||||
const lastAngle = beforeCursor.lastIndexOf('>');
|
||||
return Math.max(lastComma, lastAngle) + 1;
|
||||
const lastNewline = Math.max(beforeCursor.lastIndexOf('\n'), beforeCursor.lastIndexOf('\r'));
|
||||
return Math.max(lastComma, lastAngle, lastNewline) + 1;
|
||||
}
|
||||
|
||||
_getMetadataWidget() {
|
||||
|
||||
Reference in New Issue
Block a user