eric6/HexEdit/HexEditSearchReplaceWidget.py

changeset 7254
f00d825fbdb3
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- 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)

eric ide

mercurial