diff --git a/files/bin/code-project-list b/files/bin/code-project-list index 5b24388..8688fc0 100755 --- a/files/bin/code-project-list +++ b/files/bin/code-project-list @@ -44,6 +44,8 @@ def main(): selected_project.check_returncode() selected_index = int(selected_project.stdout.strip()) + if selected_index == -1: + return # This is hit when enter is hit on no results subprocess.run(['code', project_paths[selected_index]])