Skip to content

Commit

Permalink
Merge pull request #332 from rsteube/tcsh-prevent-default-space-suffix
Browse files Browse the repository at this point in the history
tcsh: prevent default space suffix
  • Loading branch information
rsteube committed Sep 10, 2021
2 parents f371cc4 + 95d5d08 commit 955dfbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions internal/tcsh/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ func ActionRawValues(currentWord string, nospace bool, values ...common.RawValue

vals := make([]string, len(filtered))
for index, val := range filtered {
//if nospace && !strings.HasSuffix(val.Value, nospaceIndicator) {
// val.Value = val.Value + nospaceIndicator
//}

if len(filtered) == 1 {
vals[index] = quoter.Replace(sanitizer.Replace(val.Value))
} else {
Expand Down
2 changes: 1 addition & 1 deletion internal/tcsh/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import (

func Snippet(cmd *cobra.Command) string {
// TODO initial version - needs to handle open quotes
return fmt.Sprintf("complete \"%v\" 'p@*@`echo \"$COMMAND_LINE'\"''\"'\" | xargs %v _carapace tcsh _ `@' ;", cmd.Name(), uid.Executable())
return fmt.Sprintf("complete \"%v\" 'p@*@`echo \"$COMMAND_LINE'\"''\"'\" | xargs %v _carapace tcsh _ `@@' ;", cmd.Name(), uid.Executable())
}

0 comments on commit 955dfbb

Please sign in to comment.