Fix assertion on =<c-g><cr>

Turned out to be an important thing, was a memory leak.

Thanks to filterfalse.
Consider 'dotdirs' value on applying local filter

Thanks to filterfalse.
Merge branch 'minor-fixes-for-local-filter'