Browse files

(redone) fix for incorrect highlighting of TODO words in headings

  • Loading branch information...
1 parent 0a1e0ee commit ace652a5aa522393a405d9a8a19ceb52c6403762 @hsitz committed Nov 14, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 ftplugin/org.vim
View
7 ftplugin/org.vim
@@ -535,10 +535,11 @@ function! OrgTodoSetup(todolist_str)
let b:v.fulltodos = todolist
syntax clear DONETODO
- exec 'syntax match DONETODO /' . b:v.todoDoneMatch . '/ containedin=OL1,OL2,OL3,OL4,OL5,OL6'
+ exec 'syntax match DONETODO /' . b:v.todoDoneMatch[1:] . '/ containedin=OL1,OL2,OL3,OL4,OL5,OL6'
syntax clear NOTDONETODO
- exec 'syntax match NOTDONETODO /' . b:v.todoNotDoneMatch . '/ containedin=OL1,OL2,OL3,OL4,OL5,OL6'
+ exec 'syntax match NOTDONETODO /' . b:v.todoNotDoneMatch[1:] . '/ containedin=OL1,OL2,OL3,OL4,OL5,OL6'
+ call s:OrgCustomTodoHighlights()
for item in keys( b:v.tododict )
let item_char = tolower( b:v.tododict[item].todochar)
if item_char ==# ''
@@ -7529,7 +7530,7 @@ function! s:OrgCustomTodoHighlights()
endfor
for i in keys(tempdict)
if tempdict[i].group == item
- exec 'syntax clear ' . tempdict[i].group
+ exec 'syntax clear ' . tempdict[i].group
break
endif
endfor

0 comments on commit ace652a

Please sign in to comment.