Fix issue with empty search resulting in opening the last project
This commit is contained in:
parent
3d2ce7a106
commit
5be6429a79
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ def main():
|
||||||
selected_project.check_returncode()
|
selected_project.check_returncode()
|
||||||
|
|
||||||
selected_index = int(selected_project.stdout.strip())
|
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]])
|
subprocess.run(['code', project_paths[selected_index]])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue