Loading ...
Sorry, an error occurred while loading the content.

[vim-mac] Vim 5.6 for MacOS, patch.mac02.diff

Expand Messages
  • Dany St-Amant
    Hi, The support for Codewarrior External Editor was giving back the wrong file to Codewarrior when more than one file was edited. ***
    Message 1 of 1 , Jan 24, 2000
    • 0 Attachment
      Hi,

      The support for Codewarrior External Editor was giving back the wrong file
      to Codewarrior when more than one file was edited.

      *** Seven:Documents:Downloads:Vim:vim-5.6:vim-5.6.patched.rel1:src:gui_mac.c
      Fri Jan 21 22:59:11 2000
      --- Seven:Documents:Downloads:Vim:vim-5.6:vim-5.6.patched.rel2:src:gui_mac.c
      Mon Jan 24 22:28:22 2000
      ***************
      *** 3267,3275 ****
      if (foundFile)
      {
      BufferSize = 0; /* GetHandleSize (GetTextData.theText); */
      ! for (lineno = 0; lineno < buf->b_ml.ml_line_count; lineno++)
      {
      ! line = ml_get((linenr_t) lineno);
      linesize = STRLEN(line) + 1;
      lineStart = BufferSize;
      BufferSize += linesize;
      --- 3267,3276 ----
      if (foundFile)
      {
      BufferSize = 0; /* GetHandleSize (GetTextData.theText); */
      ! for (lineno = 0; lineno <= buf->b_ml.ml_line_count; lineno++)
      {
      ! /* Must use the right buffer */
      ! line = ml_get_buf(buf, (linenr_t) lineno, FALSE);
      linesize = STRLEN(line) + 1;
      lineStart = BufferSize;
      BufferSize += linesize;
    Your message has been successfully submitted and would be delivered to recipients shortly.