Skip to content

Instantly share code, notes, and snippets.

@jgouly
Created April 7, 2011 16:21
Show Gist options
  • Save jgouly/908124 to your computer and use it in GitHub Desktop.
Save jgouly/908124 to your computer and use it in GitHub Desktop.
[jey@tigger diakonos]$ git diff
diff --git a/lib/diakonos/buffer/cursor.rb b/lib/diakonos/buffer/cursor.rb
index 50ee557..c8a16da 100644
--- a/lib/diakonos/buffer/cursor.rb
+++ b/lib/diakonos/buffer/cursor.rb
@@ -115,7 +115,7 @@ module Diakonos
end
def cursor_to_eol
- y = @win_main.cury
+ y = @last_row
end_col = line_at( y ).length
last_char_col = line_at( y ).rstrip.length
case @settings[ 'eol_behaviour' ]
@@ -329,4 +329,4 @@ module Diakonos
end
-end
\ No newline at end of file
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment