mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
respect: disable_paste_summary
This commit is contained in:
parent
9275665868
commit
2af3f19397
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ export function Prompt(props: PromptProps) {
|
|||
} catch {}
|
||||
|
||||
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
|
||||
if (lineCount >= 5) {
|
||||
if (lineCount >= 5 && !sync.data.config.experimental?.disable_paste_summary) {
|
||||
event.preventDefault()
|
||||
const currentOffset = input.visualCursor.offset
|
||||
const virtualText = `[Pasted ~${lineCount} lines]`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue