Mention inventor of *foo*~^*bar* pattern

This commit is contained in:
Sebastian Gniazdowski 2016-09-19 20:10:19 +02:00
parent b9575f5d08
commit b666ef0004

View file

@ -48,6 +48,8 @@ _hsmw_main() {
local search_buffer="${BUFFER%% ##}" search_pattern="" colsearch_pattern=""
search_buffer="${search_buffer## ##}"
search_buffer="${search_buffer//(#m)[][*?|#~^()><\\]/\\$MATCH}"
# Pattern will be *foo*~^*bar* (inventor: Mikael Magnusson)
# It's: foo and not what doesn't contain bar, etc.
search_pattern="${search_buffer// ##/*~^*}"
colsearch_pattern="${search_buffer// ##/|}"