shithub: mongrel

Download patch

ref: daba8317dbe3f52d12881c3d255085faba7b5e0b
parent: fe88b23b4cd4aa642b657dc2e0bd036980086ee7
author: phil9 <telephil9@gmail.com>
date: Thu Feb 10 00:31:04 EST 2022

fix selection index recomputation when new messages are added

	selection index recomputation was wrong ending in a new message being
	selected instead of the currently selected message

--- a/index.c
+++ b/index.c
@@ -71,7 +71,7 @@
 indexadded(int index)
 {
 	index = mbox->count - index - 1;
-	if(sel <= index)
+	if(sel >= index)
 		++sel;
 }