To: vim-dev@vim.org Subject: patch 5.5.019 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.019 Problem: A function call in 'statusline' stops using ":q" twice from exiting, when the last argument hasn't been edited. Solution: Don't decrement quitmore when executing a function. (Madsen) Files: src/ex_docmd.c *** ../vim-5.5.18/src/ex_docmd.c Sat Oct 2 17:20:01 1999 --- src/ex_docmd.c Fri Oct 8 09:59:00 1999 *************** *** 695,701 **** ea.line2 = 1; /* when not editing the last file :q has to be typed twice */ ! if (quitmore) --quitmore; /* * 2. skip comment lines and leading space and colons --- 695,706 ---- ea.line2 = 1; /* when not editing the last file :q has to be typed twice */ ! if (quitmore ! #ifdef WANT_EVAL ! /* avoid that a function call in 'statusline' does this */ ! && getline != get_func_line ! #endif ! ) --quitmore; /* * 2. skip comment lines and leading space and colons *** ../vim-5.5.18/src/version.c Tue Oct 12 19:33:44 1999 --- src/version.c Tue Oct 12 19:35:17 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 19, -- The question is: What do you do with your life? The wrong answer is: Be the richest guy in the graveyard. (billionaire and Oracle founder Larry Ellison) --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /