Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Use indentation preferences to comment/uncomment. #5470

Merged
merged 1 commit into from
Oct 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions spyder/widgets/sourcecode/codeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def __init__(self, parent=None):
# indent guides
self.indent_guides = self.panels.register(IndentationGuide(self),
Panel.Position.FLOATING)

# Blanks enabled
self.blanks_enabled = False

Expand Down Expand Up @@ -1713,7 +1712,7 @@ def __even_number_of_spaces(self, line_text, group=0):
"""
spaces = re.findall('\s+', line_text)
if len(spaces) - 1 >= group:
return len(spaces[group]) % 4 == 0
return len(spaces[group]) % len(self.indent_chars) == 0

def __number_of_spaces(self, line_text, group=0):
"""Get the number of spaces from a group of spaces in a line."""
Expand Down