Only matching pref. in resp. from edit_prefix call

Made sure that the return value from the edit_prefix function only
includes matching prefixes, eg. the prefixes which were actually
modified.