Fixed an issue in the PEP-8 dialog caused by the new checker being one off compared to the old one.

Wed, 28 Aug 2013 18:04:14 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 28 Aug 2013 18:04:14 +0200
changeset 2874
0d754c68e1db
parent 2872
13f12f81cb7b
child 2875
1267f0663801

Fixed an issue in the PEP-8 dialog caused by the new checker being one off compared to the old one.

Plugins/CheckerPlugins/Pep8/Pep8Dialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py	Tue Aug 27 18:22:35 2013 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py	Wed Aug 28 18:04:14 2013 +0200
@@ -508,7 +508,7 @@
             message = item.data(0, self.messageRole)
             
             vm = e5App().getObject("ViewManager")
-            vm.openSourceFile(fn, lineno=lineno, pos=position)
+            vm.openSourceFile(fn, lineno=lineno, pos=position + 1)
             editor = vm.getOpenEditor(fn)
             
             editor.toggleFlakesWarning(lineno, True, message)

eric ide

mercurial