]> granicus.if.org Git - neomutt/commit
Fix of the sidebar item highlight when matched by current search
authorBernard Pratz <guyzmo+github+pub@m0g.net>
Sat, 7 Jan 2017 17:52:55 +0000 (18:52 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 18 Jan 2017 16:41:33 +0000 (16:41 +0000)
commit0ff6aaf472552f094d01ec92f299339e7872e72a
tree5ad81e1941b0de825d6abb348dd8bcb0579edd9b
parentcf8ed69d54112af02f086f83ef8361bbaef423fc
Fix of the sidebar item highlight when matched by current search

Because searches done manually (or shifted with a window) have an
absolute path to the current Maildir within the URI, whereas the one
declared with the virtual-mailboxes command usually have implicit
Maildir path specification, this patch parses the given URL of a mailbox
and re-builds it to contain the full path.

For that purpose has been added:

- nm_normalize_uri() function

Has been modified:

- get_query_string (in mutt_notmuch): earned an argument to disable
  adding of a window in the context of the nm_normalize_uri function.
- mutt_parse_virtual_mailboxes: the path value is sent through the
  nm_normalize_uri() function to be normalized.

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
buffy.c
mutt_notmuch.c
mutt_notmuch.h