diff -r 50dbe65a1334 -r f00d825fbdb3 eric6/HexEdit/HexEditSearchReplaceWidget.py --- a/eric6/HexEdit/HexEditSearchReplaceWidget.py Sat Sep 21 16:04:17 2019 +0200 +++ b/eric6/HexEdit/HexEditSearchReplaceWidget.py Sat Sep 21 17:41:22 2019 +0200 @@ -246,14 +246,18 @@ if len(ba) > 0: startIndex = self.__editor.cursorPosition() // 2 if prev: - if self.__editor.hasSelection() and \ - startIndex == self.__editor.getSelectionEnd(): + if ( + self.__editor.hasSelection() and + startIndex == self.__editor.getSelectionEnd() + ): # skip to the selection start startIndex = self.__editor.getSelectionBegin() idx = self.__editor.lastIndexOf(ba, startIndex) else: - if self.__editor.hasSelection() and \ - startIndex == self.__editor.getSelectionBegin() - 1: + if ( + self.__editor.hasSelection() and + startIndex == self.__editor.getSelectionBegin() - 1 + ): # skip to the selection end startIndex = self.__editor.getSelectionEnd() idx = self.__editor.indexOf(ba, startIndex) @@ -336,8 +340,10 @@ @type bool """ # Check enabled status due to dual purpose usage of this method - if not self.__ui.replaceButton.isEnabled() and \ - not self.__ui.replaceSearchButton.isEnabled(): + if ( + not self.__ui.replaceButton.isEnabled() and + not self.__ui.replaceSearchButton.isEnabled() + ): return fba, ftxt = self.__getContent(False)