Skip to content

Commit

Permalink
Bug fixed buggy remove_line
Browse files Browse the repository at this point in the history
  • Loading branch information
carpincho committed Dec 3, 2011
1 parent b3cd771 commit 3cf02e6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ninja_ide/gui/editor/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,9 @@ def remove_line(editorWidget):
if cursor.hasSelection():
cursor.removeSelectedText()
else:
if cursor.columnNumber() == 0: # a blank line
cursor.deleteChar()
else:
cursor.select(QTextCursor.LineUnderCursor)
cursor.removeSelectedText()
cursor.deleteChar()
cursor.select(QTextCursor.LineUnderCursor)
cursor.removeSelectedText()
cursor.deleteChar()
cursor.endEditBlock()


Expand Down

0 comments on commit 3cf02e6

Please sign in to comment.