From cf570d4b11002112d2a24a58b9905d1c25543a05 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 14 Mar 2019 10:37:13 -0700 Subject: [PATCH] fixup previous commit --- src/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.cpp b/src/common.cpp index 451ec6d52..3374bd6aa 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -2415,7 +2415,7 @@ bool valid_var_name_char(wchar_t chr) { return fish_iswalnum(chr) || chr == L'_' /// Test if the given string is a valid variable name. bool valid_var_name(const wcstring &str) { - return std::find_if(str.begin(), str.end(), valid_var_name_char) == str.end(); + return std::find_if_not(str.begin(), str.end(), valid_var_name_char) == str.end(); } /// Test if the string is a valid function name.