commit | 7dc5e2e486fe0287601968e535902a41a39f65bb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Aug 05 22:22:06 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Aug 05 22:22:06 2016 +0200 |
tree | 7dae219602d36900e7c309d44a17f4e800bf90aa | |
parent | 5971dab1126d6279c6e523f4fedc2f1e6fb9b4c9 [diff] [blame] |
patch 7.4.2160 Problem: setmatches() mixes up values. (Nikolai Pavlov) Solution: Save the string instead of reusing a shared buffer.
diff --git a/src/dict.c b/src/dict.c index 9c59006..30a15a6 100644 --- a/src/dict.c +++ b/src/dict.c
@@ -418,6 +418,7 @@ /* * Get a string item from a dictionary. * When "save" is TRUE allocate memory for it. + * When FALSE a shared buffer is used, can only be used once! * Returns NULL if the entry doesn't exist or out of memory. */ char_u *