From ebf7394a3e644a7cdab5cfd7dd05f1fffc7b265e Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Mon, 15 Jul 2013 15:09:16 -0700 Subject: [PATCH] fixed bug where prompt would do opposite of user selection --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 73e162c..fbb11af 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -171,7 +171,7 @@ let s:VERSION = '0.2.2' let units = units . 's' endif let answer = input(printf("You were away %.f %s%s. Add time to current file? (y/n)", duration, units, minutes)) - if answer != "y" + if answer == "y" return 1 endif return 0