mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Merge 0a70e3a824 into d0ede21e9c
This commit is contained in:
commit
a9176812eb
|
|
@ -632,6 +632,26 @@ func TestTextArea(t *testing.T) {
|
|||
expectedCursor: 4,
|
||||
expectedClipboard: "def",
|
||||
},
|
||||
{
|
||||
actions: func(textarea *TextArea) {
|
||||
textarea.TypeString(`(abc)def`)
|
||||
textarea.GoToStartOfLine()
|
||||
textarea.ForwardDeleteWord()
|
||||
},
|
||||
expectedContent: "abc)def",
|
||||
expectedCursor: 0,
|
||||
expectedClipboard: "(",
|
||||
},
|
||||
{
|
||||
actions: func(textarea *TextArea) {
|
||||
textarea.TypeString(`abc)def`)
|
||||
textarea.GoToStartOfLine()
|
||||
textarea.ForwardDeleteWord()
|
||||
},
|
||||
expectedContent: ")def",
|
||||
expectedCursor: 0,
|
||||
expectedClipboard: "abc",
|
||||
},
|
||||
{
|
||||
actions: func(textarea *TextArea) {
|
||||
textarea.TypeString(`abc`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue