summaryrefslogtreecommitdiffhomepage
path: root/web/layouts/partials/git@git.abendless.com:/srv/git
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-28 00:39:28 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-28 00:39:28 -0600
commit95bf87d4ed037e6d6786cc395d94dbe44ee88e32 (patch)
tree0d0bbbf26871a00a58c980af01ac13bdec886bda /web/layouts/partials/git@git.abendless.com:/srv/git
parentd538cc8ce9c32c932e12134b7bd59a88e88d748c (diff)
downloadzash-95bf87d4ed037e6d6786cc395d94dbe44ee88e32.tar.gz
fix(edit): vi search reads its pattern into a buffer of its own
`/` wrote the new pattern over the old one in ed.search and only wrote a terminator when something had been typed. Type `ban` over `apple`, delete the three letters, press Enter: the buffer still held "banle", so the "empty pattern repeats the previous search" case searched a mix of the two and found nothing (the terminal just beeped). vi_read_pattern() collects the pattern in a local array and copies it into ed.search only when it is non-empty; an empty pattern now really does leave the previous one alone. Test: tests/linux/i-vi.sh searches for apple, then types `ban` + three backspaces + Enter, and expects `echo apple` back. Without the change the line stays empty. Verified on Linux with make check.
Diffstat (limited to 'web/layouts/partials/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions