Skip to content
Commit b26ca136 authored by Johan Hedberg's avatar Johan Hedberg Committed by Anas Nashif
Browse files

shell: Fix command completion logic



The original code (introduced by commit d5db3520) looked like this
before the last rewrite/cleanup:

       if (default_module != -1) {
               return (str == NULL) ? dest : -1;
       }

However with the cleanup the logic seems to have gotten reversed.

Fixes #8501

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent c6336371
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment