Skip to content

Commit

Permalink
Merge from 3.x: PR #4706
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jul 6, 2017
2 parents 2a52085 + e49bbc1 commit e456348
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spyder/widgets/sourcecode/codeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1929,12 +1929,11 @@ def toggle_comment(self):

def comment(self):
"""Comment current line or selection."""
self.add_prefix(self.comment_string + " ")
self.add_prefix(self.comment_string)

def uncomment(self):
"""Uncomment current line or selection."""
self.remove_prefix(self.comment_string)
self.remove_prefix(" ")

def __blockcomment_bar(self):
return self.comment_string + ' ' + '=' * (78 - len(self.comment_string))
Expand Down

0 comments on commit e456348

Please sign in to comment.