Browse Source

Search View: Fix bug with searching full words in headlines

Patch by Peter Povinec
Carsten Dominik 15 years ago
parent
commit
f7ecc80702
2 changed files with 6 additions and 1 deletions
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-02-17  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-agenda.el (org-search-view): Fix bug with searching full
+	words in headlines in search view.
+
 2010-02-16  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-hide-archived-subtrees): Don't jump to end of

+ 1 - 1
lisp/org-agenda.el

@@ -3366,7 +3366,7 @@ in `org-agenda-text-search-extra-files'."
       (setq full-words t
 	    words (substring words 1)))
     (if (or org-agenda-search-view-always-boolean
-	    (member (string-to-char string) '(?- ?+ ?\{)))
+	    (member (string-to-char words) '(?- ?+ ?\{)))
 	(setq boolean t))
     (setq words (org-split-string words))
     (setq org-agenda-last-search-view-search-was-boolean boolean)