org-element: Fix infloop when parsing a list at the end of buffer
commitb4a8ec9321860d65f17c9fd348728a71d126a02b
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 21 Jul 2013 13:51:14 +0000 (21 15:51 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 21 Jul 2013 13:51:14 +0000 (21 15:51 +0200)
tree5271e0620c36c546b02ea3862ae7a745766c9a75
parent21dd83661b5d4fb7cae90d69e610bdb832972673
org-element: Fix infloop when parsing a list at the end of buffer

* lisp/org-element.el (org-element-plain-list-parser): Fix infloop
  when parsing a list at the end of buffer, if buffer doesn't end at
  a line beginning.
* testing/lisp/test-org-element.el: Add test.
lisp/org-element.el
testing/lisp/test-org-element.el