summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-02-12 14:29:27 +0000
committerBram Moolenaar <Bram@vim.org>2005-02-12 14:29:27 +0000
commit4399ef4764584a24080670b4869cb8b5d31a4f78 (patch)
treec47e4671d16eeeadc9aa0b9a9cb19576e7c653b9 /src/os_unix.c
parentb11bd7e43f6cdca944dceebaa3c8012d6bf1a74e (diff)
downloadvim-git-4399ef4764584a24080670b4869cb8b5d31a4f78.tar.gz
updated for version 7.0050
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c09638f4c..d89636d3a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3222,9 +3222,10 @@ mch_get_shellsize()
/*
* 2. get size from environment
- * When being POSIX compliant this overrules the ioctl() values!
+ * When being POSIX compliant ('|' flag in 'cpoptions') this overrules
+ * the ioctl() values!
*/
- if (columns == 0 || rows == 0 || getenv("VIM_POSIX") != NULL)
+ if (columns == 0 || rows == 0 || vim_strchr(p_cpo, CPO_TSIZE) != NULL)
{
if ((p = (char_u *)getenv("LINES")))
rows = atoi((char *)p);