1698 elif cmd == QsciScintilla.SCI_LINESCROLLUP: |
1698 elif cmd == QsciScintilla.SCI_LINESCROLLUP: |
1699 self.__QScintillaHistoryUp(cmd) |
1699 self.__QScintillaHistoryUp(cmd) |
1700 elif cmd == QsciScintilla.SCI_LINESCROLLDOWN: |
1700 elif cmd == QsciScintilla.SCI_LINESCROLLDOWN: |
1701 self.__QScintillaHistoryDown(cmd) |
1701 self.__QScintillaHistoryDown(cmd) |
1702 |
1702 |
1703 def __QScintillaLineUp(self, cmd): # noqa: U100 |
1703 def __QScintillaLineUp(self, _cmd): |
1704 """ |
1704 """ |
1705 Private method to handle the cursor up command. |
1705 Private method to handle the cursor up command. |
1706 |
1706 |
1707 @param cmd QScintilla command |
1707 @param _cmd QScintilla command (unused) |
1708 @type int |
1708 @type int |
1709 """ |
1709 """ |
1710 self.SendScintilla(QsciScintilla.SCI_LINEUP) |
1710 self.SendScintilla(QsciScintilla.SCI_LINEUP) |
1711 |
1711 |
1712 def __QScintillaLineDown(self, cmd): # noqa: U100 |
1712 def __QScintillaLineDown(self, _cmd): |
1713 """ |
1713 """ |
1714 Private method to handle the cursor down command. |
1714 Private method to handle the cursor down command. |
1715 |
1715 |
1716 @param cmd QScintilla command |
1716 @param _cmd QScintilla command (unused) |
1717 @type int |
1717 @type int |
1718 """ |
1718 """ |
1719 self.SendScintilla(QsciScintilla.SCI_LINEDOWN) |
1719 self.SendScintilla(QsciScintilla.SCI_LINEDOWN) |
1720 |
1720 |
1721 def __QScintillaHistoryUp(self, cmd): # noqa: U100 |
1721 def __QScintillaHistoryUp(self, _cmd): |
1722 """ |
1722 """ |
1723 Private method to handle the history up command. |
1723 Private method to handle the history up command. |
1724 |
1724 |
1725 @param cmd QScintilla command |
1725 @param _cmd QScintilla command (unused) |
1726 @type int |
1726 @type int |
1727 """ |
1727 """ |
1728 if self.isHistoryEnabled(): |
1728 if self.isHistoryEnabled(): |
1729 line, col = self.__getEndPos() |
1729 line, col = self.__getEndPos() |
1730 buf = self.text(line) |
1730 buf = self.text(line) |
1762 self.__useHistory() |
1762 self.__useHistory() |
1763 elif self.__histidx > 0: |
1763 elif self.__histidx > 0: |
1764 self.__setHistoryIndex(index=self.__histidx - 1) |
1764 self.__setHistoryIndex(index=self.__histidx - 1) |
1765 self.__useHistory() |
1765 self.__useHistory() |
1766 |
1766 |
1767 def __QScintillaHistoryDown(self, cmd): # noqa: U100 |
1767 def __QScintillaHistoryDown(self, _cmd): |
1768 """ |
1768 """ |
1769 Private method to handle the history down command. |
1769 Private method to handle the history down command. |
1770 |
1770 |
1771 @param cmd QScintilla command |
1771 @param _cmd QScintilla command (unused) |
1772 @type int |
1772 @type int |
1773 """ |
1773 """ |
1774 if self.isHistoryEnabled(): |
1774 if self.isHistoryEnabled(): |
1775 line, col = self.__getEndPos() |
1775 line, col = self.__getEndPos() |
1776 buf = self.text(line) |
1776 buf = self.text(line) |