summaryrefslogtreecommitdiffstats
path: root/buffy.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-06-23 12:38:07 -0700
committerKevin McCarthy <kevin@8t8.us>2016-06-23 12:38:07 -0700
commit149eb79ea2fc4cecb60fa8ee8d65f905a13aee9e (patch)
treed599388a2c5eb336a3a0843cb99df47ee7559379 /buffy.h
parent9ba2d8a79270ee621de2bdcedce4757eab73fe54 (diff)
Change sidebar to consistently use realpath for context and buffy comparison.
The original sidebar patch contained a half-implemented attempt to use realpath() mailbox paths for comparison. (Presumably so the open mailbox remains highlighted despite symlink issues). Add realpath to the Context, and set it when opening a mailbox. Remove sidebar ifdef for the buffy member, and always set it there too. Change the sidebar to use the realpath for comparison everywhere. mutt_buffy_check() is using stat device and inode for comparison. Perhaps this can be changed to use realpath instead, but that's beyond the scope of this patch.
Diffstat (limited to 'buffy.h')
-rw-r--r--buffy.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/buffy.h b/buffy.h
index 61e4d434..5a7cacfb 100644
--- a/buffy.h
+++ b/buffy.h
@@ -26,9 +26,8 @@
typedef struct buffy_t
{
char path[_POSIX_PATH_MAX];
-#ifdef USE_SIDEBAR
- char realpath[_POSIX_PATH_MAX];
-#endif
+ char realpath[_POSIX_PATH_MAX]; /* used for duplicate detection, context comparison,
+ and the sidebar */
off_t size;
struct buffy_t *next;
#ifdef USE_SIDEBAR