Created
September 1, 2013 13:47
-
-
Save hiroi01/33fe31f3017a8b1036fe to your computer and use it in GitHub Desktop.
mikutter select_next_patch for ver. 0.2.2.1318 fix what we use command 'select_next(一つ下のメッセージを選択)' when tweet of bottom is selected, and we can't use command 'select_next' and 'select_prev'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/plugin/gtk/gtk.rb b/core/plugin/gtk/gtk.rb | |
index b6f4803..8198461 100644 | |
--- a/core/plugin/gtk/gtk.rb | |
+++ b/core/plugin/gtk/gtk.rb | |
@@ -321,7 +321,7 @@ Plugin.create :gtk do | |
tl.set_cursor(path, column, false) | |
when :next | |
path.next! | |
- tl.set_cursor(path, column, false) | |
+ tl.set_cursor(path, column, false) if path.indices[0] < tl.size | |
else | |
if message.is_a? Integer | |
path, = *tl.get_path(0, message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment