Skip to content

Commit

Permalink
make TextEditBaseWidget.__move_line_or_selection public
Browse files Browse the repository at this point in the history
  • Loading branch information
athompson673 authored Dec 20, 2024
1 parent 3f64ee3 commit 872e36c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spyder/plugins/editor/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def duplicate_line_up(self):
"""
self.__duplicate_line_or_selection(after_current_line=True)

def __move_line_or_selection(self, after_current_line=True):
def move_line_or_selection(self, after_current_line=True):
"""Move current line or selected text"""
cursor = self.textCursor()
cursor.beginEditBlock()
Expand Down Expand Up @@ -883,11 +883,11 @@ def __move_line_or_selection(self, after_current_line=True):

def move_line_up(self):
"""Move up current line or selected text"""
self.__move_line_or_selection(after_current_line=False)
self.move_line_or_selection(after_current_line=False)

def move_line_down(self):
"""Move down current line or selected text"""
self.__move_line_or_selection(after_current_line=True)
self.move_line_or_selection(after_current_line=True)

def go_to_new_line(self):
"""Go to the end of the current line and create a new line"""
Expand Down

0 comments on commit 872e36c

Please sign in to comment.