To: vim-dev@vim.org Subject: patch 5.5.020 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.020 Problem: When the output of CTRL-D completion in the commandline goes all the way to the last column, there is an empty line. Solution: Don't add a newline when the cursor wrapped already. (Madsen) Files: src/ex_getln.c *** ../vim-5.5.19/src/ex_getln.c Sat Oct 2 17:20:01 1999 --- src/ex_getln.c Fri Oct 8 10:04:21 1999 *************** *** 2455,2462 **** } lastlen = msg_outtrans_attr(p, j ? attr : 0); } ! msg_clr_eos(); ! msg_putchar('\n'); out_flush(); /* show one line at a time */ if (got_int) { --- 2455,2465 ---- } lastlen = msg_outtrans_attr(p, j ? attr : 0); } ! if (msg_col > 0) /* when not wrapped around */ ! { ! msg_clr_eos(); ! msg_putchar('\n'); ! } out_flush(); /* show one line at a time */ if (got_int) { *** ../vim-5.5.19/src/version.c Tue Oct 12 19:39:10 1999 --- src/version.c Tue Oct 12 19:38:30 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 20, -- WOMAN: I didn't know we had a king. I thought we were an autonomous collective. DENNIS: You're fooling yourself. We're living in a dictatorship. A self-perpetuating autocracy in which the working classes-- WOMAN: Oh there you go, bringing class into it again. DENNIS: That's what it's all about if only people would-- The Quest for the Holy Grail (Monty Python) --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /