Commits

ZyX_I committed aa4519f

@/fwc: Fixed completion when {message} is present before second check

  • Participants
  • Parent commits e8ee57f

Comments (0)

Files changed (3)

plugin/frawor/fwc/compiler.vim

             continue
         endif
         if a:type is# 'complete'
+            if comptype is# 'msg'
+                continue
+            endif
             if addedcompletion
                 if !addedcycle
                     let addedcycle=1

test/fwccomplete.ok

 ::: Section <Different sections/{prefixes}+{next}>
 ::: Section <Different sections/{optional}+{next}>
 ::: Section <Different sections/{optional}+{prefixes}>
+::: Section <Messages>
 <<< messages

test/fwccompletetests.dat

   @abc+
   allfolds noallfolds
 # vim: cms=#%s fmr=▶,▲ sw=2 ts=2 sts=2 et ft=conf
+#▶1 Messages
+:let s:_messages={'test': 'Test message'}
+`(in list #test match /^a/)
+  @+
+  =filter(copy(s:list), 'v:val[0] is "a"')
+
+`(#test in list match /^a/)
+  @+
+  =filter(copy(s:list), 'v:val[0] is "a"')