# HG changeset patch # User lmytinsk # Date 1380119613 -14400 # Node ID 8c9aca0e4322f56bce43204a172f9d18b67f0cc2 # Parent 7afcd4d3706284913bb35e02734905cb216c459a Added return statement after calling s:error diff -r 7afcd4d37062 -r 8c9aca0e4322 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Tue Mar 05 21:01:05 2013 -0800 +++ b/plugin/lawrencium.vim Wed Sep 25 18:33:33 2013 +0400 @@ -881,6 +881,7 @@ let l:filenames = s:HgStatus_GetSelectedFiles(a:linestart, a:lineend, ['!', '?']) if len(l:filenames) == 0 call s:error("No files to add or remove in selection or current line.") + return endif " Run `addremove` on those paths. @@ -896,6 +897,7 @@ let l:filenames = s:HgStatus_GetSelectedFiles(a:linestart, a:lineend, ['M', 'A', 'R']) if len(l:filenames) == 0 call s:error("No files to commit in selection or file.") + return endif " Run `Hgcommit` on those paths. @@ -924,6 +926,7 @@ let l:filenames = s:HgStatus_GetSelectedFiles(a:linestart, a:lineend, ['M', 'A', 'R']) if len(l:filenames) == 0 call s:error("No files in selection or file to create patch.") + return endif " Run `Hg qnew` on those paths. @@ -942,6 +945,7 @@ let l:filenames = s:HgStatus_GetSelectedFiles(a:linestart, a:lineend, ['M', 'A', 'R']) if len(l:filenames) == 0 call s:error("No files in selection or file to refresh the patch.") + return endif " Run `Hg qrefresh` on those paths.