Skip to content

Instantly share code, notes, and snippets.

@upsilon
Created March 7, 2012 22:12
Show Gist options
  • Save upsilon/1996583 to your computer and use it in GitHub Desktop.
Save upsilon/1996583 to your computer and use it in GitHub Desktop.
@malariya_qma 氏から指摘のあったバグの原因と思はれる箇所の修正差分 #OpenTween
diff --git a/OpenTween/StatusDictionary.cs b/OpenTween/StatusDictionary.cs
index 3c04689..7763f05 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 <= toIdx; i+= stp)
{
var id = Tab.GetId(i);
if (id > -1 && !posts[id].IsRead)
@upsilon
Copy link
Author

upsilon commented Mar 7, 2012

指摘のあったツイート:
https://twitter.com/malariya_qma/status/177347041461157888
https://twitter.com/malariya_qma/status/177354025036038144

参照: https://github.com/opentween/OpenTween/blob/6be4473c/Tween/StatusDictionary.vb#L914
目視デバッグのためこの修正で動作が改善されるかどうかは未確認。

@upsilon
Copy link
Author

upsilon commented Mar 9, 2012

最終的に下記のような修正になりました。妥協策。
opentween/OpenTween@842d694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment