home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.323 < prev    next >
Encoding:
Internet Message Format  |  2003-02-15  |  5.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.323
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.323
  11. Problem:    ":registers" doesn't stop listing for a "q" at the more prompt.
  12.         (Hari Krishna Dara)
  13. Solution:   Check for interrupt and got_int.
  14. Files:        src/ops.c, src/proto/ops.pro
  15.  
  16.  
  17. *** ../vim61.322/src/ops.c    Sat Dec 28 17:33:31 2002
  18. --- src/ops.c    Fri Feb 14 10:31:27 2003
  19. ***************
  20. *** 105,110 ****
  21. --- 105,111 ----
  22.   #ifdef FEAT_CLIPBOARD
  23.   static void    copy_yank_reg __ARGS((struct yankreg *reg));
  24.   #endif
  25. + static void    dis_msg __ARGS((char_u *p, int skip_esc));
  26.   #ifdef FEAT_VISUAL
  27.   static void    block_prep __ARGS((oparg_T *oap, struct block_def *, linenr_T, int));
  28.   #endif
  29. ***************
  30. *** 3635,3641 ****
  31.   
  32.       /* Highlight title */
  33.       MSG_PUTS_TITLE(_("\n--- Registers ---"));
  34. !     for (i = -1; i < NUM_REGISTERS; ++i)
  35.       {
  36.       if (i == -1)
  37.       {
  38. --- 3636,3642 ----
  39.   
  40.       /* Highlight title */
  41.       MSG_PUTS_TITLE(_("\n--- Registers ---"));
  42. !     for (i = -1; i < NUM_REGISTERS && !got_int; ++i)
  43.       {
  44.       if (i == -1)
  45.       {
  46. ***************
  47. *** 3676,3688 ****
  48.           MSG_PUTS_ATTR("^J", attr);
  49.           out_flush();            /* show one line at a time */
  50.       }
  51.       }
  52.   
  53.       /*
  54.        * display last inserted text
  55.        */
  56.       if ((p = get_last_insert()) != NULL
  57. !         && (arg == NULL || vim_strchr(arg, '.') != NULL))
  58.       {
  59.       MSG_PUTS("\n\".   ");
  60.       dis_msg(p, TRUE);
  61. --- 3677,3690 ----
  62.           MSG_PUTS_ATTR("^J", attr);
  63.           out_flush();            /* show one line at a time */
  64.       }
  65. +     ui_breakcheck();
  66.       }
  67.   
  68.       /*
  69.        * display last inserted text
  70.        */
  71.       if ((p = get_last_insert()) != NULL
  72. !          && (arg == NULL || vim_strchr(arg, '.') != NULL) && !got_int)
  73.       {
  74.       MSG_PUTS("\n\".   ");
  75.       dis_msg(p, TRUE);
  76. ***************
  77. *** 3691,3697 ****
  78.       /*
  79.        * display last command line
  80.        */
  81. !     if (last_cmdline != NULL && (arg == NULL || vim_strchr(arg, ':') != NULL))
  82.       {
  83.       MSG_PUTS("\n\":   ");
  84.       dis_msg(last_cmdline, FALSE);
  85. --- 3693,3700 ----
  86.       /*
  87.        * display last command line
  88.        */
  89. !     if (last_cmdline != NULL && (arg == NULL || vim_strchr(arg, ':') != NULL)
  90. !                                   && !got_int)
  91.       {
  92.       MSG_PUTS("\n\":   ");
  93.       dis_msg(last_cmdline, FALSE);
  94. ***************
  95. *** 3701,3707 ****
  96.        * display current file name
  97.        */
  98.       if (curbuf->b_fname != NULL
  99. !         && (arg == NULL || vim_strchr(arg, '%') != NULL))
  100.       {
  101.       MSG_PUTS("\n\"%   ");
  102.       dis_msg(curbuf->b_fname, FALSE);
  103. --- 3704,3710 ----
  104.        * display current file name
  105.        */
  106.       if (curbuf->b_fname != NULL
  107. !         && (arg == NULL || vim_strchr(arg, '%') != NULL) && !got_int)
  108.       {
  109.       MSG_PUTS("\n\"%   ");
  110.       dis_msg(curbuf->b_fname, FALSE);
  111. ***************
  112. *** 3710,3716 ****
  113.       /*
  114.        * display alternate file name
  115.        */
  116. !     if (arg == NULL || vim_strchr(arg, '%') != NULL)
  117.       {
  118.       char_u        *fname;
  119.       linenr_T    dummy;
  120. --- 3713,3719 ----
  121.       /*
  122.        * display alternate file name
  123.        */
  124. !     if ((arg == NULL || vim_strchr(arg, '%') != NULL) && !got_int)
  125.       {
  126.       char_u        *fname;
  127.       linenr_T    dummy;
  128. ***************
  129. *** 3726,3732 ****
  130.        * display last search pattern
  131.        */
  132.       if (last_search_pat() != NULL
  133. !                  && (arg == NULL || vim_strchr(arg, '/') != NULL))
  134.       {
  135.       MSG_PUTS("\n\"/   ");
  136.       dis_msg(last_search_pat(), FALSE);
  137. --- 3729,3735 ----
  138.        * display last search pattern
  139.        */
  140.       if (last_search_pat() != NULL
  141. !          && (arg == NULL || vim_strchr(arg, '/') != NULL) && !got_int)
  142.       {
  143.       MSG_PUTS("\n\"/   ");
  144.       dis_msg(last_search_pat(), FALSE);
  145. ***************
  146. *** 3736,3742 ****
  147.       /*
  148.        * display last used expression
  149.        */
  150. !     if (expr_line != NULL && (arg == NULL || vim_strchr(arg, '=') != NULL))
  151.       {
  152.       MSG_PUTS("\n\"=   ");
  153.       dis_msg(expr_line, FALSE);
  154. --- 3739,3746 ----
  155.       /*
  156.        * display last used expression
  157.        */
  158. !     if (expr_line != NULL && (arg == NULL || vim_strchr(arg, '=') != NULL)
  159. !                                   && !got_int)
  160.       {
  161.       MSG_PUTS("\n\"=   ");
  162.       dis_msg(expr_line, FALSE);
  163. ***************
  164. *** 3748,3754 ****
  165.    * display a string for do_dis()
  166.    * truncate at end of screen line
  167.    */
  168. !     void
  169.   dis_msg(p, skip_esc)
  170.       char_u    *p;
  171.       int        skip_esc;        /* if TRUE, ignore trailing ESC */
  172. --- 3752,3758 ----
  173.    * display a string for do_dis()
  174.    * truncate at end of screen line
  175.    */
  176. !     static void
  177.   dis_msg(p, skip_esc)
  178.       char_u    *p;
  179.       int        skip_esc;        /* if TRUE, ignore trailing ESC */
  180. ***************
  181. *** 3773,3778 ****
  182. --- 3777,3783 ----
  183.   #endif
  184.           msg_outtrans_len(p++, 1);
  185.       }
  186. +     ui_breakcheck();
  187.   }
  188.   
  189.   /*
  190. *** ../vim61.322/src/proto/ops.pro    Sun Oct 27 20:32:20 2002
  191. --- src/proto/ops.pro    Fri Feb 14 10:29:14 2003
  192. ***************
  193. *** 29,35 ****
  194.   int preprocs_left __ARGS((void));
  195.   int get_register_name __ARGS((int num));
  196.   void ex_display __ARGS((exarg_T *eap));
  197. - void dis_msg __ARGS((char_u *p, int skip_esc));
  198.   void do_do_join __ARGS((long count, int insert_space));
  199.   int do_join __ARGS((int insert_space));
  200.   void op_format __ARGS((oparg_T *oap));
  201. --- 29,34 ----
  202. *** ../vim61.322/src/version.c    Sun Feb 16 20:08:10 2003
  203. --- src/version.c    Sun Feb 16 20:11:17 2003
  204. ***************
  205. *** 607,608 ****
  206. --- 612,615 ----
  207.   {   /* Add new patch number below this line */
  208. + /**/
  209. +     323,
  210.   /**/
  211.  
  212. -- 
  213. hundred-and-one symptoms of being an internet addict:
  214. 261. You find diskettes in your pockets when doing laundry.
  215.  
  216.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  217. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  218. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  219.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  220.