mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix alt-l on multiline tokens
This would invoke test with extra arguments.
This commit is contained in:
parent
95f4c9c07e
commit
ac951427af
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ where:
|
||||||
or set -l iprefix ""
|
or set -l iprefix ""
|
||||||
set -q prefix[1]
|
set -q prefix[1]
|
||||||
or set -l prefix ""
|
or set -l prefix ""
|
||||||
set -l pat (commandline -t)
|
set -l pat "$(commandline -t)"
|
||||||
#set -l pat $argv[5]
|
#set -l pat $argv[5]
|
||||||
switch $pat
|
switch $pat
|
||||||
case "*$div*"
|
case "*$div*"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function __fish_complete_lpr_option --description 'Complete lpr option'
|
function __fish_complete_lpr_option --description 'Complete lpr option'
|
||||||
set -l optstr (commandline -t)
|
set -l optstr "$(commandline -t)"
|
||||||
switch $optstr
|
switch $optstr
|
||||||
case '*=*'
|
case '*=*'
|
||||||
string split -m1 = -- "$optstr" | read -l opt val
|
string split -m1 = -- "$optstr" | read -l opt val
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# of the directory under the cursor.
|
# of the directory under the cursor.
|
||||||
|
|
||||||
function __fish_list_current_token -d "List contents of token under the cursor if it is a directory, otherwise list the contents of the current directory"
|
function __fish_list_current_token -d "List contents of token under the cursor if it is a directory, otherwise list the contents of the current directory"
|
||||||
set -l val (commandline -t | string replace -r '^~' "$HOME")
|
set -l val "$(commandline -t | string replace -r '^~' "$HOME")"
|
||||||
set -l cmd
|
set -l cmd
|
||||||
if test -d $val
|
if test -d $val
|
||||||
set cmd ls $val
|
set cmd ls $val
|
||||||
|
|
Loading…
Reference in a new issue