Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for Sublime Text 3

  • Loading branch information...
commit 01bee0267a63309e42a79c851f8bd33d1c383032 1 parent 6269e7d
Alexandr Ruchkin mvoidex authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 haskell_type.py
4 haskell_type.py
View
@@ -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)))
Please sign in to comment.
Something went wrong with that request. Please try again.