mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-16 10:11:25 +01:00
Reset opts in some functions affected by GLOB_SUBST
Should fix GitHub #334
This commit is contained in:
parent
df6f6f9ff4
commit
4540304fa0
3 changed files with 14 additions and 2 deletions
|
@ -74,6 +74,8 @@ _zsh_autosuggest_bind_widget() {
|
||||||
|
|
||||||
# Map all configured widgets to the right autosuggest widgets
|
# Map all configured widgets to the right autosuggest widgets
|
||||||
_zsh_autosuggest_bind_widgets() {
|
_zsh_autosuggest_bind_widgets() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local widget
|
local widget
|
||||||
local ignore_widgets
|
local ignore_widgets
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ _zsh_autosuggest_clear() {
|
||||||
|
|
||||||
# Modify the buffer and get a new suggestion
|
# Modify the buffer and get a new suggestion
|
||||||
_zsh_autosuggest_modify() {
|
_zsh_autosuggest_modify() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local -i retval
|
local -i retval
|
||||||
|
|
||||||
# Only available in zsh >= 5.4
|
# Only available in zsh >= 5.4
|
||||||
|
@ -104,6 +106,8 @@ _zsh_autosuggest_fetch() {
|
||||||
|
|
||||||
# Offer a suggestion
|
# Offer a suggestion
|
||||||
_zsh_autosuggest_suggest() {
|
_zsh_autosuggest_suggest() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local suggestion="$1"
|
local suggestion="$1"
|
||||||
|
|
||||||
if [[ -n "$suggestion" ]] && (( $#BUFFER )); then
|
if [[ -n "$suggestion" ]] && (( $#BUFFER )); then
|
||||||
|
|
|
@ -211,6 +211,8 @@ _zsh_autosuggest_bind_widget() {
|
||||||
|
|
||||||
# Map all configured widgets to the right autosuggest widgets
|
# Map all configured widgets to the right autosuggest widgets
|
||||||
_zsh_autosuggest_bind_widgets() {
|
_zsh_autosuggest_bind_widgets() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local widget
|
local widget
|
||||||
local ignore_widgets
|
local ignore_widgets
|
||||||
|
|
||||||
|
@ -318,6 +320,8 @@ _zsh_autosuggest_clear() {
|
||||||
|
|
||||||
# Modify the buffer and get a new suggestion
|
# Modify the buffer and get a new suggestion
|
||||||
_zsh_autosuggest_modify() {
|
_zsh_autosuggest_modify() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local -i retval
|
local -i retval
|
||||||
|
|
||||||
# Only available in zsh >= 5.4
|
# Only available in zsh >= 5.4
|
||||||
|
@ -385,6 +389,8 @@ _zsh_autosuggest_fetch() {
|
||||||
|
|
||||||
# Offer a suggestion
|
# Offer a suggestion
|
||||||
_zsh_autosuggest_suggest() {
|
_zsh_autosuggest_suggest() {
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
local suggestion="$1"
|
local suggestion="$1"
|
||||||
|
|
||||||
if [[ -n "$suggestion" ]] && (( $#BUFFER )); then
|
if [[ -n "$suggestion" ]] && (( $#BUFFER )); then
|
||||||
|
|
Loading…
Reference in a new issue