Browse files

Fix "matching bracket" bug that occurs when matching at beginning of …

…file.
  • Loading branch information...
1 parent bd286da commit f1a55de5b5963ec70f42344fee3db19ee9fc077b @Pistos committed Apr 1, 2013
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/diakonos/buffer/searching.rb
  2. +1 −1 lib/diakonos/version.rb
View
2 lib/diakonos/buffer/searching.rb
@@ -324,6 +324,8 @@ def pos_of_prev( regexp, start_row, start_col )
row -= 1
col = -1
end
+ return if row < 0
+
col = @lines[ row ].rindex( regexp, col )
while col.nil? && row > 0
row -= 1
View
2 lib/diakonos/version.rb
@@ -1,6 +1,6 @@
module Diakonos
VERSION = '0.9.2'
- LAST_MODIFIED = 'March 13, 2013'
+ LAST_MODIFIED = 'April 1, 2013'
def self.parse_version( s )
if s

0 comments on commit f1a55de

Please sign in to comment.