mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
respect: disable_paste_summary
This commit is contained in:
@@ -643,7 +643,7 @@ export function Prompt(props: PromptProps) {
|
|||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
|
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
|
||||||
if (lineCount >= 5) {
|
if (lineCount >= 5 && !sync.data.config.experimental?.disable_paste_summary) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const currentOffset = input.visualCursor.offset
|
const currentOffset = input.visualCursor.offset
|
||||||
const virtualText = `[Pasted ~${lineCount} lines]`
|
const virtualText = `[Pasted ~${lineCount} lines]`
|
||||||
|
|||||||
Reference in New Issue
Block a user