gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 3d8e96d 10/62: Table: Fix completion issue


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 3d8e96d 10/62: Table: Fix completion issue
Date: Thu, 13 May 2021 22:20:46 -0400 (EDT)

branch: master
commit 3d8e96dcffa5b3d80eb72ed20035caba189a1162
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Table: Fix completion issue
    
    * Fix the problem where suggestions were replaced on the same word being
      completed.
---
 bin/table/completion.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/table/completion.sh b/bin/table/completion.sh
index 8d4aaac..d17b3a2 100644
--- a/bin/table/completion.sh
+++ b/bin/table/completion.sh
@@ -66,7 +66,7 @@ _gnuastro_asttable_completions(){
     # Variable "prev" is the word just before the current word
     local prev="${COMP_WORDS[COMP_CWORD-1]}";
 
-    case "$word" in
+    case "$prev" in
         -i|--information) _gnuastro_autocomplete_list_fits_files ;;
         -b|--noblank) ;;
         -h|--hdu) ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]