Skip to content

Commit

Permalink
Merge pull request #90 from ryohei22/fix_p
Browse files Browse the repository at this point in the history
PR: Fix a bug with p command
  • Loading branch information
ccordoba12 committed Jul 29, 2023
2 parents 561107a + f3d79a0 commit f46b462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ docs/_build/

# PyBuilder
target/

# Spyder project
.spyproject/
4 changes: 2 additions & 2 deletions spyder_vim/spyder/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,9 @@ def p(self, repeat):
elif selection_state == 'char':
self._move_cursor(QTextCursor.Right)
self.P(repeat)
else:
elif selection_state == 'block':
# TODO: implement pasting block text after implementing visual mode
self.P()
pass

def P(self, repeat):
"""Paste line above current line, paste characters before cursor."""
Expand Down

0 comments on commit f46b462

Please sign in to comment.