Changeset 7d25006


Ignore:
Timestamp:
Jul 11, 2009, 1:14:34 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ebf0128
Parents:
5b5f3e6
git-author:
Karl Ramm <kcr@1ts.org> (06/11/09 10:51:20)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/11/09 13:14:34)
Message:
cleanup some dead word-wrapping code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r5b5f3e6 r7d25006  
    979979void owl_editwin_process_char(owl_editwin *e, owl_input j)
    980980{
    981 #if 0
    982   int i, ret, len;
    983 #endif
    984981  char tmp[7];
    985982
     
    1002999      g_unichar_to_utf8(j.uch, tmp);
    10031000      owl_editwin_replace(e, 0, tmp);
    1004 
    1005 #if 0 /* XXX */
    1006       /* If we're going to insert at the last column do word wrapping, unless it's a \n */
    1007       if ((e->buffx + 1 == e->wrapcol) && (j.uch != '\n')) {
    1008         ret = _owl_editwin_linewrap_word(e);
    1009         if (ret == -1) {
    1010           /* we couldn't wrap, insert a hard newline instead */
    1011           owl_editwin_replace(e, 0, "\n");
    1012         }
    1013       }
    1014 #endif
    10151001    }
    10161002  }
Note: See TracChangeset for help on using the changeset viewer.