aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-show.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-03-10 11:07:58 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-03-10 11:07:58 -0800
commitbb61755afe0deddbb146222a4e42547b00a7fd76 (patch)
tree4e9bb868155827775dcf0fa18dc1bc2afbb7a0c2 /notmuch-show.c
parent70ef8de79850035bb0149ea0ab900a5dd64439b9 (diff)
emacs: Fix search refresh when on the last line of a search buffer.
We currently allow the cursor to be positioned on the "End of search results" line after the last thread in a search buffer. When refreshing on this line, there's no thread ID to be used as the target. Previously, a refresh from this case would result in a nil thread target, but we were also using nil to indicate that the target thread had been found. This caused the position to be lost during refresh, (the cursor would move from the last line in the buffer to the first). We fix this by using a magic string of "found" rather than nil to clearly indicate whether the target thread has actually been found.
Diffstat (limited to 'notmuch-show.c')
0 files changed, 0 insertions, 0 deletions