ob-comint.el: Fix bug. master
authorAaron Ecay <aaronecay@gmail.com>
Mon, 1 Sep 2014 04:49:03 +0000 (00:49 -0400)
committerAaron Ecay <aaronecay@gmail.com>
Mon, 1 Sep 2014 04:52:13 +0000 (00:52 -0400)
commita4a1d85ed0d62e7713d515b967b1bc1580ec398d
tree95074bf28184f6aeb3ae8e2d79246b0676d6b887
parent2df0785fbdcac4e343c9ac801b6c1cfcf3887bbf
ob-comint.el: Fix bug.

* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
Fix bug.

The intention is to test whether the string ends with a newline, so we
should just do that.  Otherwise:

(string-match "\n$" "foo\n\nbar") ;; => 3 => :-(
lisp/ob-comint.el