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.0.013 < prev    next >
Encoding:
Internet Message Format  |  2001-10-17  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.013
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 6.0.013
  8. Problem:    Using ":silent! cmd" still gives some error messages, like for an
  9.         invalid range. (Salman Halim)
  10. Solution:   Reset emsg_silent after calling emsg() in do_one_cmd().
  11. Files:        src/ex_docmd.c
  12.  
  13.  
  14. *** ../vim60.12/src/ex_docmd.c    Fri Sep 14 21:48:28 2001
  15. --- src/ex_docmd.c    Thu Oct 18 17:53:53 2001
  16. ***************
  17. *** 1880,1885 ****
  18. --- 1880,1900 ----
  19.       if (curwin->w_cursor.lnum == 0)    /* can happen with zero line number */
  20.       curwin->w_cursor.lnum = 1;
  21.   
  22. +     if (errormsg != NULL && *errormsg != NUL && !did_emsg)
  23. +     {
  24. +     if (sourcing)
  25. +     {
  26. +         if (errormsg != IObuff)
  27. +         {
  28. +         STRCPY(IObuff, errormsg);
  29. +         errormsg = IObuff;
  30. +         }
  31. +         STRCAT(errormsg, ": ");
  32. +         STRNCAT(errormsg, *cmdlinep, IOSIZE - STRLEN(IObuff));
  33. +     }
  34. +     emsg(errormsg);
  35. +     }
  36.       if (verbose_save >= 0)
  37.       p_verbose = verbose_save;
  38.   
  39. ***************
  40. *** 1900,1919 ****
  41.       msg_scroll = save_msg_scroll;
  42.       }
  43.   
  44. -     if (errormsg != NULL && *errormsg != NUL && !did_emsg)
  45. -     {
  46. -     if (sourcing)
  47. -     {
  48. -         if (errormsg != IObuff)
  49. -         {
  50. -         STRCPY(IObuff, errormsg);
  51. -         errormsg = IObuff;
  52. -         }
  53. -         STRCAT(errormsg, ": ");
  54. -         STRNCAT(errormsg, *cmdlinep, IOSIZE - STRLEN(IObuff));
  55. -     }
  56. -     emsg(errormsg);
  57. -     }
  58.       if (ea.nextcmd && *ea.nextcmd == NUL)    /* not really a next command */
  59.       ea.nextcmd = NULL;
  60.   
  61. --- 1915,1920 ----
  62. *** ../vim60.12/src/version.c    Thu Oct 18 18:02:49 2001
  63. --- src/version.c    Thu Oct 18 17:54:02 2001
  64. ***************
  65. *** 608,609 ****
  66. --- 608,611 ----
  67.   {   /* Add new patch number below this line */
  68. + /**/
  69. +     13,
  70.   /**/
  71.  
  72. -- 
  73. From "know your smileys":
  74.  ~#:-(    I just washed my hair, and I can't do nuthin' with it.
  75.  
  76.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  77. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  78.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  79.