src/string.c

changeset 379
477404eb380e
parent 378
952c2df7e7ac
child 380
2c9a5aebaee1
equal deleted inserted replaced
378:952c2df7e7ac 379:477404eb380e
774 } 774 }
775 curbuf = curbuf->next; 775 curbuf = curbuf->next;
776 } while (curbuf); 776 } while (curbuf);
777 memcpy(destptr, str.ptr+srcidx, str.length-srcidx); 777 memcpy(destptr, str.ptr+srcidx, str.length-srcidx);
778 778
779 /* Free index buffer */
780 scstrrepl_free_ibuf(firstbuf);
781
779 return result; 782 return result;
780 } 783 }
781 784
782 sstr_t scstrreplacen(scstr_t str, scstr_t pattern, 785 sstr_t scstrreplacen(scstr_t str, scstr_t pattern,
783 scstr_t replacement, size_t replmax) { 786 scstr_t replacement, size_t replmax) {

mercurial