OSDN Git Service

いくつかのショートカットキーが正常に動作しない問題を修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 8 Apr 2012 12:11:31 +0000 (21:11 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 8 Apr 2012 12:13:30 +0000 (21:13 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/Tween.cs

index c9e6ff4..2bba1e6 100644 (file)
@@ -2,7 +2,7 @@
 
 ==== Ver 1.0.1-beta1(2012/xx/xx)
  * FIX: OpenTweenアイコンが表示方法によって低解像度で表示されてしまう問題を修正
- * FIX: ã\83ªã\82¹ã\83\88表示ä¸\8aã\81®ã\82·ã\83§ã\83¼ã\83\88ã\82«ã\83\83ã\83\88ã\82­ã\83¼ã\80\8c\80\8dã\80\8c\80\8dが動作しない問題を修正
+ * FIX: ã\83ªã\82¹ã\83\88表示ä¸\8aã\81§ã\81®ä¸\80é\83¨ã\81®ã\82·ã\83§ã\83¼ã\83\88ã\82«ã\83\83ã\83\88ã\82­ã\83¼が動作しない問題を修正
  * FIX: 「常に最前面に表示」が有効な状態でバージョン情報ダイアログを表示できない問題を修正
  * FIX: 「最小化したときにアイコン化する」が強制的にオンになる問題を修正
  * FIX: 発言詳細部においてUnicodeで追加された一部の文字が正しく表示されない問題を修正
index 11c68d6..23db910 100644 (file)
@@ -5614,7 +5614,7 @@ namespace OpenTween
             {
                 cidx = _curList.SelectedIndices[0];
             }
-            toIdx = _curList.VirtualListSize - 1;
+            toIdx = _curList.VirtualListSize;
 
             switch (SType)
             {
@@ -5645,7 +5645,7 @@ namespace OpenTween
                     {
                         cidx = toIdx;
                     }
-                    toIdx = 0;
+                    toIdx = -1;
                     stp = -1;
                     break;
             }
@@ -5667,7 +5667,7 @@ namespace OpenTween
                     try
                     {
                         _search = new Regex(_word, regOpt);
-                        for (int idx = cidx; idx <= toIdx; idx += stp)
+                        for (int idx = cidx; idx != toIdx; idx += stp)
                         {
                             PostClass post;
                             try
@@ -5697,7 +5697,7 @@ namespace OpenTween
                 else
                 {
                     // 通常検索
-                    for (int idx = cidx; idx <= toIdx; idx += stp)
+                    for (int idx = cidx; idx != toIdx; idx += stp)
                     {
                         PostClass post;
                         try
@@ -7015,7 +7015,7 @@ namespace OpenTween
                     fIdx = _curList.SelectedIndices[0] + 1;
                     if (fIdx > _curList.VirtualListSize - 1) return;
                 }
-                toIdx = _curList.VirtualListSize - 1;
+                toIdx = _curList.VirtualListSize;
                 stp = 1;
             }
             else
@@ -7029,11 +7029,11 @@ namespace OpenTween
                     fIdx = _curList.SelectedIndices[0] - 1;
                     if (fIdx < 0) return;
                 }
-                toIdx = 0;
+                toIdx = -1;
                 stp = -1;
             }
 
-            for (int idx = fIdx; idx == toIdx; idx += stp)
+            for (int idx = fIdx; idx != toIdx; idx += stp)
             {
                 if (_statuses[_curTab.Text, idx].IsFav)
                 {
@@ -7068,7 +7068,7 @@ namespace OpenTween
                 {
                     fIdx = ListTab.SelectedIndex - 1;
                 }
-                toIdx = 0;
+                toIdx = -1;
                 stp = -1;
             }
             else
@@ -7082,12 +7082,12 @@ namespace OpenTween
                 {
                     fIdx = ListTab.SelectedIndex + 1;
                 }
-                toIdx = ListTab.TabCount - 1;
+                toIdx = ListTab.TabCount;
                 stp = 1;
             }
 
             bool found = false;
-            for (int tabidx = fIdx; tabidx == toIdx; tabidx += stp)
+            for (int tabidx = fIdx; tabidx != toIdx; tabidx += stp)
             {
                 if (_statuses.Tabs[ListTab.TabPages[tabidx].Text].TabType == MyCommon.TabUsageType.DirectMessage) continue; // Directタブは対象外
                 for (int idx = 0; idx < ((DetailsListView)ListTab.TabPages[tabidx].Tag).VirtualListSize; idx++)
@@ -7117,14 +7117,14 @@ namespace OpenTween
             {
                 fIdx = _curList.SelectedIndices[0] + 1;
                 if (fIdx > _curList.VirtualListSize - 1) return;
-                toIdx = _curList.VirtualListSize - 1;
+                toIdx = _curList.VirtualListSize;
                 stp = 1;
             }
             else
             {
                 fIdx = _curList.SelectedIndices[0] - 1;
                 if (fIdx < 0) return;
-                toIdx = 0;
+                toIdx = -1;
                 stp = -1;
             }
 
@@ -7171,14 +7171,14 @@ namespace OpenTween
             {
                 fIdx = _curList.SelectedIndices[0] + 1;
                 if (fIdx > _curList.VirtualListSize - 1) return;
-                toIdx = _curList.VirtualListSize - 1;
+                toIdx = _curList.VirtualListSize;
                 stp = 1;
             }
             else
             {
                 fIdx = _curList.SelectedIndices[0] - 1;
                 if (fIdx < 0) return;
-                toIdx = 0;
+                toIdx = -1;
                 stp = -1;
             }
 
@@ -7193,7 +7193,7 @@ namespace OpenTween
                 if (_anchorPost == null) return;
             }
 
-            for (int idx = fIdx; ; idx += stp)
+            for (int idx = fIdx; idx != toIdx; idx += stp)
             {
                 PostClass post = _statuses[_curTab.Text, idx];
                 if (post.ScreenName == _anchorPost.ScreenName ||
@@ -7209,8 +7209,6 @@ namespace OpenTween
                     _curList.EnsureVisible(idx);
                     break;
                 }
-
-                if (idx == toIdx) break;
             }
         }