Changeset 5f8ec6b for global.c


Ignore:
Timestamp:
Jan 5, 2011, 10:09:33 AM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
569f0bd
Parents:
c23f678
git-author:
Adam Glasgall <adam@crossproduct.net> (01/04/11 21:47:10)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/05/11 10:09:33)
Message:
Replace per-editwin killbuf with a global one.

Right now, the kill buffer is part of a struct _owl_editwin, which
means that it goes away when the editwin does - rather inconvenient if
you realize mid-paragraph that you're sending to the wrong class. This
patch adds a global for the killbuf (and its accessors), modifies the
editwin kill/yank functions to use it, and removes the old per-editwin
killbuf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rd222c44 r5f8ec6b  
    125125  g->timerlist = NULL;
    126126  g->interrupted = FALSE;
     127  g->kill_buffer = NULL;
    127128}
    128129
     
    989990  return g->debug_file;
    990991}
     992
     993char *owl_global_get_kill_buffer(owl_global *g) {
     994  return g->kill_buffer;
     995}
     996
     997void owl_global_set_kill_buffer(owl_global *g,char *kill) {
     998  g->kill_buffer = kill;
     999}
Note: See TracChangeset for help on using the changeset viewer.