mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Make stash filtering work when filtering on a folder
This commit is contained in:
parent
09cbaf2cba
commit
ec82e7c1e7
|
|
@ -56,7 +56,7 @@ outer:
|
|||
currentStashEntry = stashEntryFromLine(match[2], idx)
|
||||
for i+1 < len(lines) && !isAStash(lines[i+1]) {
|
||||
i++
|
||||
if lines[i] == filterPath {
|
||||
if strings.HasPrefix(lines[i], filterPath) {
|
||||
stashEntries = append(stashEntries, currentStashEntry)
|
||||
continue outer
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,11 +53,8 @@ var FilterByPath = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
filterBy("subdir")
|
||||
|
||||
t.Views().Stash().
|
||||
/* EXPECTED:
|
||||
Lines(
|
||||
Contains("subdir/file2"),
|
||||
)
|
||||
ACTUAL: */
|
||||
IsEmpty()
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue