Fix issue with empty search resulting in opening the last project

This commit is contained in:
Jake Howard 2020-02-12 19:06:39 +00:00
parent 3d2ce7a106
commit 5be6429a79
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -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]])