Fix text with empty primary selection
This commit is contained in:
parent
4d49d9da09
commit
708b46d6c0
@ -54,6 +54,10 @@ class SelectionUnsupportedError(ClipboardError):
|
||||
|
||||
"""Raised if [gs]et_clipboard is used and selection=True is unsupported."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__("Primary selection is not supported on this "
|
||||
"platform!")
|
||||
|
||||
|
||||
class ClipboardEmptyError(ClipboardError):
|
||||
|
||||
|
@ -99,6 +99,11 @@ Feature: Yanking and pasting.
|
||||
And I run :open {primary} (invalid command)
|
||||
Then the error "Primary selection is empty." should be shown
|
||||
|
||||
Scenario: Pasting without primary selection being supported
|
||||
When selection is not supported
|
||||
And I run :open {primary} (invalid command)
|
||||
Then the error "Primary selection is not supported on this platform!" should be shown
|
||||
|
||||
Scenario: Pasting with a space in clipboard
|
||||
When I put " " into the clipboard
|
||||
And I run :open {clipboard} (invalid command)
|
||||
|
Loading…
Reference in New Issue
Block a user