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 / old / 5.4.8 < prev    next >
Encoding:
Internet Message Format  |  1999-07-28  |  3.5 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.4.8
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.4.8
  8. Problem:    Edit some file, ":he", ":opt": options from help window are shown,
  9.             but pressing space updates from the other window. (Phillipps)
  10.             Also: When there are changes in the option-window, ":q!" gives an
  11.             error message.
  12. Solution:   Before creating the option-window, go to a non-help window.
  13.             Use ":bdel!" to delete the buffer.
  14. Files:      runtime/optwin.vim
  15.  
  16.  
  17. *** ../vim-5.4/runtime/optwin.vim    Sun Jul 25 22:02:47 1999
  18. --- runtime/optwin.vim    Thu Jul 29 21:20:10 1999
  19. ***************
  20. *** 1,7 ****
  21.   " These commands create the option window.
  22.   "
  23.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  24. ! " Last change:    1999 Jul 15
  25.   
  26.   " Make sure the '<' flag is not included in 'cpoptions', otherwise <CR> would
  27.   " not be recognized.  See ":help 'cpoptions'".
  28. --- 1,7 ----
  29.   " These commands create the option window.
  30.   "
  31.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  32. ! " Last change:    1999 Jul 29
  33.   
  34.   " Make sure the '<' flag is not included in 'cpoptions', otherwise <CR> would
  35.   " not be recognized.  See ":help 'cpoptions'".
  36. ***************
  37. *** 117,122 ****
  38. --- 117,133 ----
  39.   let old_ru = &ru
  40.   set notitle noicon nosc noru
  41.   
  42. + " If the current window is a help window, try finding a non-help window.
  43. + " Relies on syntax highlighting to be switched on.
  44. + let OW_thiswin = winnr()
  45. + while exists("b:current_syntax") && b:current_syntax == "help"
  46. +   exe "norm! \<C-W>w"
  47. +   if OW_thiswin == winnr()
  48. +     break
  49. +   endif
  50. + endwhile
  51. + unlet OW_thiswin
  52.   " Open the window
  53.   new option-window
  54.   set ts=15 tw=0
  55. ***************
  56. *** 867,873 ****
  57.     delfun OW_BinOptionL
  58.     delfun OW_Header
  59.     au! optwin
  60. !   bdel option-window
  61.     call OW_leave()
  62.     delfun OW_enter
  63.     delfun OW_leave
  64. --- 878,884 ----
  65.     delfun OW_BinOptionL
  66.     delfun OW_Header
  67.     au! optwin
  68. !   bdel! option-window
  69.     call OW_leave()
  70.     delfun OW_enter
  71.     delfun OW_leave
  72. *** ../vim-5.4/src/version.h    Thu Jul 29 12:09:04 1999
  73. --- src/version.h    Thu Jul 29 21:31:00 1999
  74. ***************
  75. *** 19,26 ****
  76.   #define VIM_VERSION_MINOR_STR        "4"
  77.   #define VIM_VERSION_BUILD         57
  78.   #define VIM_VERSION_BUILD_STR        "57"
  79. ! #define VIM_VERSION_PATCHLEVEL         7
  80. ! #define VIM_VERSION_PATCHLEVEL_STR    "7"
  81.   
  82.   /*
  83.    * VIM_VERSION_NODOT is used for the runtime directory name.
  84. --- 19,26 ----
  85.   #define VIM_VERSION_MINOR_STR        "4"
  86.   #define VIM_VERSION_BUILD         57
  87.   #define VIM_VERSION_BUILD_STR        "57"
  88. ! #define VIM_VERSION_PATCHLEVEL         8
  89. ! #define VIM_VERSION_PATCHLEVEL_STR    "8"
  90.   
  91.   /*
  92.    * VIM_VERSION_NODOT is used for the runtime directory name.
  93. ***************
  94. *** 30,35 ****
  95.    */
  96.   #define VIM_VERSION_NODOT    "vim54"
  97.   #define VIM_VERSION_SHORT    "5.4"
  98. ! #define VIM_VERSION_MEDIUM    "5.4.7"
  99. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.7 (1999 Jul 29)"
  100. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.7 (1999 Jul 29, compiled "
  101. --- 30,35 ----
  102.    */
  103.   #define VIM_VERSION_NODOT    "vim54"
  104.   #define VIM_VERSION_SHORT    "5.4"
  105. ! #define VIM_VERSION_MEDIUM    "5.4.8"
  106. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.8 (1999 Jul 29)"
  107. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.8 (1999 Jul 29, compiled "
  108.  
  109.  
  110. --
  111. WOMAN:   King of the who?
  112. ARTHUR:  The Britons.
  113. WOMAN:   Who are the Britons?
  114. ARTHUR:  Well, we all are. we're all Britons and I am your king.
  115.                                   The Quest for the Holy Grail (Monty Python)
  116.  
  117. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  118.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  119.