mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Allow cheatsheet items with same descriptions
Prior to the refactor performed in https://github.com/denisidoro/navi/pull/760, cheatsheet items could have the same tags and the same description, but a different snippet, and they would all be listed in the finder. After the refactor, this behavior has changed and such items will now be treated as non-unique. There appears to be no requirement for item descriptions to be distinct, so this patch restores the earlier behavior. Fixes: https://github.com/denisidoro/navi/issues/951 Signed-off-by: Erik Gabriel Carrillo <ecarrillo@alumni.utexas.net>
This commit is contained in:
parent
90a29ed324
commit
a72ce5937c
1 changed files with 1 additions and 1 deletions
|
|
@ -18,6 +18,6 @@ impl Item {
|
|||
}
|
||||
|
||||
pub fn hash(&self) -> u64 {
|
||||
fnv(&format!("{}{}", &self.tags.trim(), &self.comment.trim()))
|
||||
fnv(&format!("{}{}{}", &self.tags.trim(), &self.comment.trim(), &self.snippet.trim()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue