Kmpl: wire up u/complete with correct prefix/suffix split

This commit is contained in:
Levi Neely 2026-05-11 15:43:36 +02:00
parent 2f093f4fa6
commit 5dac3d2ff9
1 changed files with 4 additions and 2 deletions

View File

@ -48,5 +48,7 @@ $(cat "$tmpdir/hover")
</hover>
"
# Debug: uncomment to verify inputs
#printf '=== PREFIX ===\n%s\n=== SELECTION ===\n%s\n=== SUFFIX ===\n%s\n' "$prefix" "$sel" "$suffix"
# Send prefix+selection as prefix context; selection is the focal point
result=$(printf '%s%s' "$prefix" "$sel" | $OLLIE/u/complete -file "$filename" -suffix "$suffix" -context "$context" "$@")
printf '%s' "$result"