From f81dddbcb74894ada3f29bee96fa25e88c3529fa Mon Sep 17 00:00:00 2001 From: Bridger Brown Date: Mon, 21 Oct 2024 17:02:08 -0700 Subject: [PATCH] remove trailing whitespace on visual selection for going to step definition --- autoload/behave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/behave.py b/autoload/behave.py index fa5a4e4..ac38c68 100644 --- a/autoload/behave.py +++ b/autoload/behave.py @@ -4,7 +4,7 @@ import os def get_step_definition(feature, input): - parsed_input = " ".join(input.lstrip().split(" ")[1:]).lstrip() + parsed_input = " ".join(input.strip().split(" ")[1:]).lstrip() base_path = os.path.dirname(os.path.abspath(feature)) steps_paths = [os.path.join(base_path, "steps")]