Commit 33b1fc3 1 parent e5f1f48 commit 33b1fc3 Copy full SHA for 33b1fc3
File tree 2 files changed +2
-10
lines changed
tests/snapshots/home/dynamic-env/exhaustive/elvish/elvish
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,10 @@ impl EnvCompleter for Elvish {
157
157
158
158
let script = r#"
159
159
set edit:completion:arg-completer[BIN] = { |@words|
160
- set E:_CLAP_IFS = "\n"
161
-
162
160
var index = (count $words)
163
161
set index = (- $index 1)
164
- set E:_CLAP_COMPLETE_INDEX = (to-string $index)
165
- set E:VAR = "elvish"
166
162
167
- put (COMPLETER -- $@words) | to-lines
163
+ put (env _CLAP_IFS="\n" _CLAP_COMPLETE_INDEX=(to-string $index) VAR="elvish" COMPLETER -- $@words) | to-lines
168
164
}
169
165
"#
170
166
. replace ( "COMPLETER" , & completer)
Original file line number Diff line number Diff line change @@ -2,14 +2,10 @@ set edit:rprompt = (constantly "")
2
2
set edit:prompt = ( constantly "% " )
3
3
4
4
set edit:completion:arg-completer [ exhaustive] = { | @words|
5
- set E:_CLAP_IFS = "\n "
6
-
7
5
var index = ( count $words )
8
6
set index = ( - $index 1)
9
- set E:_CLAP_COMPLETE_INDEX = ( to-string $index )
10
- set E:COMPLETE = "elvish"
11
7
12
- put ( exhaustive -- $ @words) | to-lines
8
+ put ( env _CLAP_IFS= " \n " _CLAP_COMPLETE_INDEX= ( to-string $index ) COMPLETE= "elvish" exhaustive -- $ @words) | to-lines
13
9
}
14
10
15
11
You can’t perform that action at this time.
0 commit comments