Revision: 7044 Author: wikipedian Date: 2009-07-12 19:41:10 +0000 (Sun, 12 Jul 2009)
Log Message: ----------- As of KDE 4.0, kate line and column numbering starts at 1.
Compare: http://lists.kde.org/?l=kde-kant&m=100841076615038&w=2
Modified Paths: -------------- trunk/pywikipedia/editarticle.py
Modified: trunk/pywikipedia/editarticle.py =================================================================== --- trunk/pywikipedia/editarticle.py 2009-07-12 13:04:37 UTC (rev 7043) +++ trunk/pywikipedia/editarticle.py 2009-07-12 19:41:10 UTC (rev 7044) @@ -54,7 +54,7 @@ line = column = 0 # Linux editors. We use startswith() because some users might use parameters. if config.editor.startswith('kate'): - command += " -l %i -c %i" % (line, column) + command += " -l %i -c %i" % (line + 1, column + 1) elif config.editor.startswith('gedit'): command += " +%i" % (line + 1) # seems not to support columns elif config.editor.startswith('emacs'):
pywikipedia-svn@lists.wikimedia.org