Skip to content

Commit

Permalink
Fix #43976 - Search: dismissing a search result should move to next r…
Browse files Browse the repository at this point in the history
…esult
  • Loading branch information
roblourens committed Apr 23, 2018
1 parent 4e9ef72 commit 00fea43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/parts/search/browser/searchActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ export abstract class AbstractSearchAndReplaceAction extends Action {
// If file match is removed then next element is the next file match
while (!!navigator.next() && !(navigator.current() instanceof FileMatch)) { }
} else {
navigator.next();
while (navigator.next() && !(navigator.current() instanceof Match)) {
viewer.expand(navigator.current());
}
}
return navigator.current();
}
Expand Down

0 comments on commit 00fea43

Please sign in to comment.