Style change: thinner gutter column (#4521)

This commit is contained in:
Junegunn Choi authored and GitHub committed 2025-09-16 21:22:56 +09:00
1 parent c5cabe1691
commit a67aa85820
8 files changed
+138 -29

No files matched your search

+52 -16
View File
@@ -178,8 +178,8 @@ class TestLayout < TestInteractive
tmux.send_keys 'seq 3 | fzf --height ~100% --info=inline --border rounded', :Enter
expected = <<~OUTPUT
╭──────────
│ 3
│ 2
│ ▌ 3
│ ▌ 2
│ > 1
│ > < 3/3
╰──────────
@@ -197,8 +197,8 @@ class TestLayout < TestInteractive
│ │
│ │
│ ╰────────
│ 3
│ 2
│ ▌ 3
│ ▌ 2
│ > 1
│ > < 3/3
╰──────────
@@ -247,7 +247,7 @@ class TestLayout < TestInteractive
tmux.send_keys 'seq 100 | fzf --height ~5 --info=inline --border rounded', :Enter
expected = <<~OUTPUT
╭──────────────
│ 2
│ ▌ 2
│ > 1
│ > < 100/100
╰──────────────
@@ -275,12 +275,12 @@ class TestLayout < TestInteractive
def test_fzf_multi_line
tmux.send_keys %[(echo -en '0\\0'; echo -en '1\\n2\\0'; seq 1000) | fzf --read0 --multi --bind load:select-all --border rounded], :Enter
block = <<~BLOCK
│ ┃998
│ ┃999
│ ┃1000
│ ╹
│ ╻1
│ ╹2
│ ▌┃998
│ ▌┃999
│ ▌┃1000
│ ▌╹
│ ▌╻1
│ ▌╹2
│ >>0
│ 3/3 (3)
│ >
@@ -312,11 +312,11 @@ class TestLayout < TestInteractive
│ >
│ 3/3 (3)
│ >>0
│ ╻1
│ ╹2
│ ╻1
│ ┃2
│ ┃3
│ ▌╻1
│ ▌╹2
│ ▌╻1
│ ▌┃2
│ ▌┃3
BLOCK
tmux.until { assert_block(block, it) }
end
@@ -1156,6 +1156,42 @@ class TestLayout < TestInteractive
tmux.until { assert_block(block, it) }
end
def test_gutter_default
tmux.send_keys %(seq 10 | fzf), :Enter
block = <<~BLOCK
▌ 3
▌ 2
> 1
10/10
>
BLOCK
tmux.until { assert_block(block, it) }
end
def test_gutter_default_no_unicode
tmux.send_keys %(seq 10 | fzf --no-unicode), :Enter
block = <<~BLOCK
3
2
> 1
10/10
>
BLOCK
tmux.until { assert_block(block, it) }
end
def test_gutter_custom
tmux.send_keys %(seq 10 | fzf --gutter x), :Enter
block = <<~BLOCK
x 3
x 2
> 1
10/10
>
BLOCK
tmux.until { assert_block(block, it) }
end
def test_combinations
skip unless ENV['LONGTEST']