summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-08-28 16:00:19 +0200
committerBram Moolenaar <Bram@vim.org>2011-08-28 16:00:19 +0200
commit9dc93ae43e392d0de3cb3b2a0080c4dd29995c26 (patch)
treee7f9ce8060eb9fd48ae9cfdb91c41e6dbaaf243b /src/if_python.c
parent2eba18255ea36927ea0acc6d45b7be03ca94a139 (diff)
downloadvim-9dc93ae43e392d0de3cb3b2a0080c4dd29995c26.zip
updated for version 7.3.288
Problem: has('python') may give an error message for not being able to load the library after using python3. Solution: Only give the error when the verbose argument is true.
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if_python.c b/src/if_python.c
index f3b7e5b63..d8dff02f7 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -368,7 +368,8 @@ python_runtime_link_init(char *libname, int verbose)
* standard C extension libraries of one or both python versions. */
if (python3_loaded())
{
- EMSG(_("E836: This Vim cannot execute :python after using :py3"));
+ if (verbose)
+ EMSG(_("E836: This Vim cannot execute :python after using :py3"));
return FAIL;
}
#endif