Browse Source

org-capture.el (org-capture-place-table-line): Fix bug

* org-capture.el (org-capture-place-table-line): Fix bug.

Thanks to Ian Barton for reporting this.
Bastien Guerry 12 years ago
parent
commit
92271aecea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-capture.el

+ 2 - 2
lisp/org-capture.el

@@ -1081,8 +1081,8 @@ it.  When it is a variable, retrieve the value.  Return whatever we get."
       (setq end (point))))
     (goto-char beg)
     (org-capture-position-for-last-stored 'table-line)
-    (if (or (re-search-backward "%\\?" end t)
-	    (re-search-forward "%\\?" beg t))
+    (if (or (re-search-backward "%\\?" beg t)
+	    (re-search-forward "%\\?" end t))
 	(replace-match ""))
     (org-table-align)))