Karsten Hopp 1f2971
To: vim-dev@vim.org
Karsten Hopp 1f2971
Subject: Patch 7.2.124
Karsten Hopp 1f2971
Fcc: outbox
Karsten Hopp 1f2971
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1f2971
Mime-Version: 1.0
Karsten Hopp 1f2971
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 1f2971
Content-Transfer-Encoding: 8bit
Karsten Hopp 1f2971
------------
Karsten Hopp 1f2971
Karsten Hopp 1f2971
Patch 7.2.124
Karsten Hopp 1f2971
Problem:    Typing 'q' at more prompt for ":tselect" output still displays
Karsten Hopp 1f2971
            more lines, causing another more prompt. (Markus Heidelberg)
Karsten Hopp 1f2971
Solution:   Quit listing tags when 'q' typed.
Karsten Hopp 1f2971
Files:      src/tag.c
Karsten Hopp 1f2971
Karsten Hopp 1f2971
Karsten Hopp 1f2971
*** ../vim-7.2.123/src/tag.c	Sat Feb 21 22:57:10 2009
Karsten Hopp 1f2971
--- src/tag.c	Mon Feb 23 00:07:24 2009
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 618,624 ****
Karsten Hopp 1f2971
  		taglen_advance(taglen);
Karsten Hopp 1f2971
  		MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T));
Karsten Hopp 1f2971
  
Karsten Hopp 1f2971
! 		for (i = 0; i < num_matches; ++i)
Karsten Hopp 1f2971
  		{
Karsten Hopp 1f2971
  		    parse_match(matches[i], &tagp);
Karsten Hopp 1f2971
  		    if (!new_tag && (
Karsten Hopp 1f2971
--- 618,624 ----
Karsten Hopp 1f2971
  		taglen_advance(taglen);
Karsten Hopp 1f2971
  		MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T));
Karsten Hopp 1f2971
  
Karsten Hopp 1f2971
! 		for (i = 0; i < num_matches && !got_int; ++i)
Karsten Hopp 1f2971
  		{
Karsten Hopp 1f2971
  		    parse_match(matches[i], &tagp);
Karsten Hopp 1f2971
  		    if (!new_tag && (
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 655,660 ****
Karsten Hopp 1f2971
--- 655,662 ----
Karsten Hopp 1f2971
  		    }
Karsten Hopp 1f2971
  		    if (msg_col > 0)
Karsten Hopp 1f2971
  			msg_putchar('\n');
Karsten Hopp 1f2971
+ 		    if (got_int)
Karsten Hopp 1f2971
+ 			break;
Karsten Hopp 1f2971
  		    msg_advance(15);
Karsten Hopp 1f2971
  
Karsten Hopp 1f2971
  		    /* print any extra fields */
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 689,694 ****
Karsten Hopp 1f2971
--- 691,698 ----
Karsten Hopp 1f2971
  				if (msg_col + ptr2cells(p) >= Columns)
Karsten Hopp 1f2971
  				{
Karsten Hopp 1f2971
  				    msg_putchar('\n');
Karsten Hopp 1f2971
+ 				    if (got_int)
Karsten Hopp 1f2971
+ 					break;
Karsten Hopp 1f2971
  				    msg_advance(15);
Karsten Hopp 1f2971
  				}
Karsten Hopp 1f2971
  				p = msg_outtrans_one(p, attr);
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 704,709 ****
Karsten Hopp 1f2971
--- 708,715 ----
Karsten Hopp 1f2971
  			if (msg_col > 15)
Karsten Hopp 1f2971
  			{
Karsten Hopp 1f2971
  			    msg_putchar('\n');
Karsten Hopp 1f2971
+ 			    if (got_int)
Karsten Hopp 1f2971
+ 				break;
Karsten Hopp 1f2971
  			    msg_advance(15);
Karsten Hopp 1f2971
  			}
Karsten Hopp 1f2971
  		    }
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 734,739 ****
Karsten Hopp 1f2971
--- 740,747 ----
Karsten Hopp 1f2971
  		    {
Karsten Hopp 1f2971
  			if (msg_col + (*p == TAB ? 1 : ptr2cells(p)) > Columns)
Karsten Hopp 1f2971
  			    msg_putchar('\n');
Karsten Hopp 1f2971
+ 			if (got_int)
Karsten Hopp 1f2971
+ 			    break;
Karsten Hopp 1f2971
  			msg_advance(15);
Karsten Hopp 1f2971
  
Karsten Hopp 1f2971
  			/* skip backslash used for escaping command char */
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 760,771 ****
Karsten Hopp 1f2971
  		    if (msg_col)
Karsten Hopp 1f2971
  			msg_putchar('\n');
Karsten Hopp 1f2971
  		    ui_breakcheck();
Karsten Hopp 1f2971
- 		    if (got_int)
Karsten Hopp 1f2971
- 		    {
Karsten Hopp 1f2971
- 			got_int = FALSE;	/* only stop the listing */
Karsten Hopp 1f2971
- 			break;
Karsten Hopp 1f2971
- 		    }
Karsten Hopp 1f2971
  		}
Karsten Hopp 1f2971
  		ask_for_selection = TRUE;
Karsten Hopp 1f2971
  	    }
Karsten Hopp 1f2971
  #if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
Karsten Hopp 1f2971
--- 768,776 ----
Karsten Hopp 1f2971
  		    if (msg_col)
Karsten Hopp 1f2971
  			msg_putchar('\n');
Karsten Hopp 1f2971
  		    ui_breakcheck();
Karsten Hopp 1f2971
  		}
Karsten Hopp 1f2971
+ 		if (got_int)
Karsten Hopp 1f2971
+ 		    got_int = FALSE;	/* only stop the listing */
Karsten Hopp 1f2971
  		ask_for_selection = TRUE;
Karsten Hopp 1f2971
  	    }
Karsten Hopp 1f2971
  #if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
Karsten Hopp 1f2971
*** ../vim-7.2.123/src/version.c	Sun Feb 22 23:42:08 2009
Karsten Hopp 1f2971
--- src/version.c	Mon Feb 23 00:51:57 2009
Karsten Hopp 1f2971
***************
Karsten Hopp 1f2971
*** 678,679 ****
Karsten Hopp 1f2971
--- 678,681 ----
Karsten Hopp 1f2971
  {   /* Add new patch number below this line */
Karsten Hopp 1f2971
+ /**/
Karsten Hopp 1f2971
+     124,
Karsten Hopp 1f2971
  /**/
Karsten Hopp 1f2971
Karsten Hopp 1f2971
-- 
Karsten Hopp 1f2971
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 1f2971
123. You ask the car dealer to install an extra cigarette lighter
Karsten Hopp 1f2971
     on your new car to power your notebook.
Karsten Hopp 1f2971
Karsten Hopp 1f2971
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1f2971
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1f2971
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 1f2971
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///