Skip to content

Commit c89cc2c

Browse files
daniel-shimonjonathanslenders
authored andcommitted
pyperclip: Fix pyperclip selection type
Without this fix pasting single-line text always adds a newline
1 parent fde10a7 commit c89cc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prompt_toolkit/clipboard/pyperclip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def get_data(self) -> ClipboardData:
3838
else:
3939
return ClipboardData(
4040
text=text,
41-
type=SelectionType.LINES if "\n" in text else SelectionType.LINES,
41+
type=SelectionType.LINES if "\n" in text else SelectionType.CHARACTERS,
4242
)

0 commit comments

Comments
 (0)