]> git.notmuchmail.org Git - notmuch/commitdiff
vim: fix an error in the logic for finding message under cursor in show screen
authorBart Trojanowski <bart@jukie.net>
Sun, 22 Nov 2009 05:42:42 +0000 (00:42 -0500)
committerBart Trojanowski <bart@jukie.net>
Wed, 25 Nov 2009 05:48:54 +0000 (00:48 -0500)
vim/plugin/notmuch.vim

index 2d2f9785954cabe039726903c0fea16e9d760662..aece360b663f8b95660a217e2a6101211da37b02 100644 (file)
@@ -496,7 +496,7 @@ function! s:NM_show_message_id()
         let info = b:nm_raw_info
         let lnum = line('.')
         for msg in info['msgs']
         let info = b:nm_raw_info
         let lnum = line('.')
         for msg in info['msgs']
-                if lnum < msg['start']
+                if lnum >= msg['start']
                         continue
                 endif
 
                         continue
                 endif