Skip to content

Commit

Permalink
Make cwd prefix case sensitive as well
Browse files Browse the repository at this point in the history
Discuss:
- Windows FS operations can be case-insensitive for the user
- Can the actual operations through which we gather the `cwd` return
different case?
  • Loading branch information
sholderbach committed Mar 26, 2024
1 parent a2bc28c commit 73056ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/history/sqlite_backed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ impl SqliteBackedHistory {
params.push((":cwd", Box::new(cwd_exact)));
}
if let Some(cwd_prefix) = &query.filter.cwd_prefix {
wheres.push("cwd like :cwd_like");
let cwd_like = format!("{cwd_prefix}%");
wheres.push("cwd glob :cwd_like");
let cwd_like = format!("{cwd_prefix}*");
params.push((":cwd_like", Box::new(cwd_like)));
}
if let Some(exit_successful) = query.filter.exit_successful {
Expand Down

0 comments on commit 73056ed

Please sign in to comment.