Mercurial > vim
comparison src/testdir/test63.in @ 6849:f4e5704c5c43 v7.4.745
patch 7.4.745
Problem: The entries added by matchaddpos() are returned by getmatches()
but can't be set with setmatches(). (Lcd)
Solution: Fix setmatches(). (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 19 Jun 2015 16:32:57 +0200 |
parents | d51d47bd77c2 |
children |
comparison
equal
deleted
inserted
replaced
6848:359cbd05bea5 | 6849:f4e5704c5c43 |
---|---|
185 :if v1 != v4 && v5 == v4 && v6 == v1 && v7 == v1 && v8 == v4 && v9 == v4 && v10 == v1 | 185 :if v1 != v4 && v5 == v4 && v6 == v1 && v7 == v1 && v8 == v4 && v9 == v4 && v10 == v1 |
186 : let @r .= "OK\n" | 186 : let @r .= "OK\n" |
187 :else | 187 :else |
188 : let @r .= "FAILED: " . v4 . "/" . v5 . "/" . v6 . "/" . v7 . "/" . v8 . "/" . v9 . "/" . v10 . "\n" | 188 : let @r .= "FAILED: " . v4 . "/" . v5 . "/" . v6 . "/" . v7 . "/" . v8 . "/" . v9 . "/" . v10 . "\n" |
189 :endif | 189 :endif |
190 :call clearmatches() | 190 :" Check, that setmatches() can correctly restore the matches from matchaddpos() |
191 :call matchadd('MyGroup1', '\%2lmatchadd') | |
192 :let m=getmatches() | |
193 :call clearmatches() | |
194 :call setmatches(m) | |
195 :let @r .= string(getmatches())."\n" | |
191 G"rp | 196 G"rp |
192 :/^Results/,$wq! test.out | 197 :/^Results/,$wq! test.out |
193 ENDTEST | 198 ENDTEST |
194 | 199 |
195 Results of test63: | 200 Results of test63: |