ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
17 lines
497 B
Plaintext
17 lines
497 B
Plaintext
# This may be called after a completion that inserted the unambiguous
|
|
# (i.e. non-menu- and non-single-match-) string into the command line.
|
|
# If there are multiple positions in the string with missing or differing
|
|
# characters, repeatedly calling this widget cycles between all these
|
|
# positions.
|
|
|
|
emulate -L zsh
|
|
setopt extendedglob
|
|
|
|
local p="$_lastcomp[insert_positions]"
|
|
|
|
if [[ $p = ((#s)|*:)${CURSOR}:* ]]; then
|
|
CURSOR=${${p#(|*:)${CURSOR}:}%%:*}
|
|
elif [[ -n $p ]]; then
|
|
CURSOR=${p%%:*}
|
|
fi
|