Skip to content

commands/search/tag: Use only thread id in testquery#1612

Merged
pazz merged 2 commits intopazz:masterfrom
guludo:nx/search-tag-command-fix-testquery
Apr 12, 2023
Merged

commands/search/tag: Use only thread id in testquery#1612
pazz merged 2 commits intopazz:masterfrom
guludo:nx/search-tag-command-fix-testquery

Conversation

@guludo
Copy link
Contributor

@guludo guludo commented Apr 12, 2023

This is specially necessary if one is chaining a series of tagging commands.

As an example, without this fix, in the chain "untag inbox,unread --no-flush; tag foo,bar", the second command would not work properly if the current search buffer's query string was "tag:inbox and tag:unread".

guludo added 2 commits April 12, 2023 10:24
The result of that call is only used when self.allm is false, so move
the call so we do not waste time performing a query that is not going to
be used.
This is specially necessary if one is chaining a series of tagging
commands.

As an example, without this fix, in the chain "untag inbox,unread
--no-flush; tag foo,bar", the second command would not work properly if
the current search buffer's query string was "tag:inbox and tag:unread".
Copy link
Owner

@pazz pazz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@pazz pazz merged commit faaa846 into pazz:master Apr 12, 2023
@guludo guludo deleted the nx/search-tag-command-fix-testquery branch April 12, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants