Markus Heidelberg wrote:

> Markus Heidelberg, 23.02.2009:
> > Bram Moolenaar, 23.02.2009:
> > > 
> > > Markus Heidelberg wrote:
> > > 
> > > > Bram Moolenaar, 22.02.2009:
> > > > > 
> > > > > Patch 7.2.123
> > > > > Problem:    Typing 'q' at more prompt for ":map" output still 
> > > > > displays another
> > > > >             line, causing another more prompt. (Markus Heidelberg)
> > > > > Solution:   Quit listing maps when 'q' typed.
> > > > > Files:      src/getchar.c
> > > > 
> > > > This only fixes a few of the examples from the bug report.
> > > > It still occurs for both :map and :tselect
> > > 
> > > Each of these have to be dealt with separately.  I just found and fixed
> > > the ":tselect" problem.  Any others?  Please give a reproducable
> > > example.
> > 
> > In Konsole terminal emulator with $LINES=24 and $COLUMNS=80:
> > ./vim -u NONE -U NONE -N
> > :so AlignMapsPlugin.vim
> > :map<CR>ddjjq
> > or
> > :map<CR>dddddddddq (9 times d)
> > 
> > Seems to be dependent on the line wrapping as you suggested in a
> > previous mail.
> > 
> > The AlignMapsPlugin.vim is the latest from vim.org, just to get enough
> > mappings with long lines.

Thanks for the example.  It's indeed that a wrapping line causes more
output.

I think I found a generic solution. It doesn't stop some more output
from being displayed, but it does avoid the extra prompt.


*** ../vim-7.2.124/src/message.c        Sun Feb 22 00:58:03 2009
--- src/message.c       Mon Feb 23 04:17:39 2009
***************
*** 2553,2559 ****
            {
                /* Jump to the choices of the dialog. */
                retval = TRUE;
-               lines_left = Rows - 1;
            }
            else
  #endif
--- 2553,2558 ----
***************
*** 2561,2566 ****
--- 2560,2568 ----
                got_int = TRUE;
                quit_more = TRUE;
            }
+           /* When there is some more output (wrapping line) display that
+            * without another prompt. */
+           lines_left = Rows - 1;
            break;
  
  #ifdef FEAT_CLIPBOARD



-- 
hundred-and-one symptoms of being an internet addict:
124. You begin conversations with, "Who is your internet service provider?"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui