From 5be6429a79d43817a2c75862beabf5390ec84148 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 12 Feb 2020 19:06:39 +0000 Subject: [PATCH] Fix issue with empty search resulting in opening the last project --- files/bin/code-project-list | 2 ++ 1 file changed, 2 insertions(+) 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]])