summaryrefslogtreecommitdiff
path: root/src/terminal_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-07 16:58:17 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-07 16:58:17 +0900
commit4bedd33c593ab0cb750e17c42750048904fdf7fb (patch)
tree10ef749a51b1b947f5bb34eb154c5f992a50edbb /src/terminal_test.go
parentc5fb0c43f9222e72ff00290162b68e34a8f0d5d7 (diff)
downloadfzf-4bedd33c593ab0cb750e17c42750048904fdf7fb.tar.gz
Refactor the code to remove global variables
Diffstat (limited to 'src/terminal_test.go')
-rw-r--r--src/terminal_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal_test.go b/src/terminal_test.go
index a448de30..317cd5f9 100644
--- a/src/terminal_test.go
+++ b/src/terminal_test.go
@@ -13,7 +13,7 @@ import (
)
func replacePlaceholderTest(template string, stripAnsi bool, delimiter Delimiter, printsep string, forcePlus bool, query string, allItems []*Item) string {
- return replacePlaceholder(replacePlaceholderParams{
+ replaced, _ := replacePlaceholder(replacePlaceholderParams{
template: template,
stripAnsi: stripAnsi,
delimiter: delimiter,
@@ -25,6 +25,7 @@ func replacePlaceholderTest(template string, stripAnsi bool, delimiter Delimiter
prompt: "prompt",
executor: util.NewExecutor(""),
})
+ return replaced
}
func TestReplacePlaceholder(t *testing.T) {