]> git.eshelyaron.com Git - emacs.git/commit
Fix off by one error in python-mode assertion (Bug#30964)
authorNoam Postavsky <npostavs@gmail.com>
Sat, 2 Jun 2018 20:22:17 +0000 (16:22 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 16 Jun 2018 22:34:19 +0000 (18:34 -0400)
commit05345babc988060cca540770599282102c34f2a7
treee9bef969663372264d34621e03106db997118916
parent92b609c572c127b6c6616413549809ff20ee30c1
Fix off by one error in python-mode assertion (Bug#30964)

* lisp/progmodes/python.el (python-nav-end-of-statement): Don't assert
that string-start is strictly greater than last-string-end, because
the string end is a position outside of the string and may therefore
be the same as the following string's start.
* test/lisp/progmodes/python-tests.el (python-nav-end-of-statement-2):
New test.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el