Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a bug with detecting indentation when there is none

  • Loading branch information...
commit 4f654a1c5987dce38564433de1523eb4afa9c583 1 parent 23ea868
@wbond authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Prefixr.py
View
2  Prefixr.py
@@ -116,7 +116,7 @@ def fix_whitespace(self, original, prefixed, sel, braces):
# Determine the indent of the CSS rule
(row, col) = self.view.rowcol(sel.begin())
indent_region = self.view.find('^\s+', self.view.text_point(row, 0))
- if self.view.rowcol(indent_region.begin())[0] == row:
+ if indent_region and self.view.rowcol(indent_region.begin())[0] == row:
indent = self.view.substr(indent_region)
else:
indent = ''

1 comment on commit 4f654a1

@userhgq

good

Please sign in to comment.
Something went wrong with that request. Please try again.