Permalink
Browse files

Fix for Sublime Text 3

  • Loading branch information...
1 parent 6269e7d commit 01bee0267a63309e42a79c851f8bd33d1c383032 @mvoidex mvoidex committed Mar 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 haskell_type.py
View
4 haskell_type.py
@@ -40,11 +40,11 @@ def tabs_offset(view, point):
Subtract this value to get sublime column by ghc-mod column, add to get ghc-mod column by sublime column
"""
cur_line = view.substr(view.line(point))
- return len(filter(lambda ch: ch == '\t', cur_line)) * 7
+ return len(list(filter(lambda ch: ch == '\t', cur_line))) * 7
def sublime_column_to_type_column(view, line, column):
cur_line = view.substr(view.line(view.text_point(line, column)))
- return column + len(filter(lambda ch: ch == '\t', cur_line)) * 7 + 1
+ return column + len(list(filter(lambda ch: ch == '\t', cur_line))) * 7 + 1
def type_column_to_sublime_column(view, line, column):
cur_line = view.substr(view.line(view.text_point(line - 1, 0)))

0 comments on commit 01bee02

Please sign in to comment.