From 4bd118e470a9796053bb0329407486497d9731f6 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Fri, 9 Mar 2012 23:47:17 +0900 Subject: [PATCH] =?utf8?q?=E3=80=8C=E6=9C=AA=E8=AA=AD=E3=81=B8=E3=82=B8?= =?utf8?q?=E3=83=A3=E3=83=B3=E3=83=97=E3=80=8D=E6=A9=9F=E8=83=BD=E3=81=8C?= =?utf8?q?=E6=AD=A3=E5=B8=B8=E3=81=AB=E5=8B=95=E4=BD=9C=E3=81=97=E3=81=AA?= =?utf8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(thanks?= =?utf8?q?=20@malariya=5Fqma=20!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 参照: https://gist.github.com/1996583 --- OpenTween/StatusDictionary.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenTween/StatusDictionary.cs b/OpenTween/StatusDictionary.cs index 3c046896..03eb906e 100644 --- a/OpenTween/StatusDictionary.cs +++ b/OpenTween/StatusDictionary.cs @@ -1193,7 +1193,7 @@ namespace OpenTween posts = Tab.Posts; } - for (int i = StartIdx; i < toIdx; i+= stp) + for (int i = StartIdx; ; i+= stp) { var id = Tab.GetId(i); if (id > -1 && !posts[id].IsRead) @@ -1201,6 +1201,8 @@ namespace OpenTween Tab.OldestUnreadId = id; break; } + + if (i == toIdx) break; } } -- 2.11.0