[BACK]Return to window-copy.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window-copy.c between version 1.25 and 1.26

version 1.25, 2009/08/21 07:33:58 version 1.26, 2009/09/07 18:50:45
Line 849 
Line 849 
                 window_copy_copy_line(wp, &buf, &off, ey, 0, ex);                  window_copy_copy_line(wp, &buf, &off, ey, 0, ex);
         }          }
   
         /* Terminate buffer, overwriting final \n. */          /* Don't bother if no data. */
         if (off != 0)          if (off == 0) {
                 buf[off - 1] = '\0';                  xfree(buf);
                   return;
           }
           off--;  /* remove final \n */
   
         /* Add the buffer to the stack. */          /* Add the buffer to the stack. */
         limit = options_get_number(&c->session->options, "buffer-limit");          limit = options_get_number(&c->session->options, "buffer-limit");
         paste_add(&c->session->buffers, buf, limit);          paste_add(&c->session->buffers, buf, off, limit);
 }  }
   
 void  void

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26