Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2013 10:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
mikutter select_next_patch for ver. fix what we use command 'select_next(一つ下のメッセージを選択)' when tweet of bottom is selected, and we can't use command 'select_next' and 'select_prev'
diff --git a/core/plugin/gtk/gtk.rb b/core/plugin/gtk/gtk.rb
index f0cfe61..be1345a 100644
--- a/core/plugin/gtk/gtk.rb
+++ b/core/plugin/gtk/gtk.rb
@@ -327,7 +327,7 @@ Plugin.create :gtk do
tl.set_cursor(path, column, false)
when :next!
- tl.set_cursor(path, column, false)
+ tl.set_cursor(path, column, false) if path.indices[0] < tl.size
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