Skip to content

Commit

Permalink
Fix searching
Browse files Browse the repository at this point in the history
Fixes #85
  • Loading branch information
sindresorhus committed Nov 20, 2022
1 parent b080860 commit 2e41dd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ const filterProcesses = (input, processes, flags) => {

const filteredProcesses = new FuzzySearch(
processes,
[flags.verbose && !isWindows ? 'cmd' : 'name'],
[
// The name is truncated for some reason, so we always use `cmd` for now.
'cmd',
/// flags.verbose && !isWindows ? 'cmd' : 'name',
'pid',
],
{
caseSensitive: false,
},
Expand Down

0 comments on commit 2e41dd6

Please sign in to comment.