Changeset 47519e1b for text.c


Ignore:
Timestamp:
Jan 2, 2008, 2:42:05 AM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
c60ade2
Parents:
2febcae
Message:
text entry:
* first pass at utf-8 text entry. This is not yet complete, and it certainly has bugs.
  The following is an incomplete list of functions that will probably misbehave if you use them.
  - owl_editwin_move_to_nextword()
  - owl_editwin_move_to_previousword()
  - owl_editwin_delete_nextword()
  - owl_editwin_delete_previousword()
  - owl_editwin_delete_to_endofline()
  - owl_editwin_fill_paragraph()

format text:
* owl_fmtext_curs_waddstr() contract restored to match trunk.
* owl_fmtext_curs_waddstr_without_search() added.

misc:
* Importing Markus Kuhn's wcwidth.c from
  http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
* Change wcwidth() calls to mk_wcwidth()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    rdd24b6a r47519e1b  
    7777    while(col < bcol && ptr_c < ptr_e) {
    7878      gunichar c = g_utf8_get_char(ptr_c);
    79       if (col + wcwidth(c) > bcol) break;
    80       col += wcwidth(c);
     79      if (col + mk_wcwidth(c) > bcol) break;
     80      col += mk_wcwidth(c);
    8181      ptr_c = g_utf8_next_char(ptr_c);
    8282      if (col >= acol) {
Note: See TracChangeset for help on using the changeset viewer.