- Timestamp:
- Mar 29, 2010, 10:22:25 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 73eda8c
- Parents:
- b4a95fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r38cc669 r21dd391 45 45 static void oe_restore_excursion(owl_editwin *e, oe_excursion *x); 46 46 static void oe_restore_mark_only(owl_editwin *e, oe_excursion *x); 47 static int oe_count_glyphs(const char *s);48 47 static int oe_char_width(gunichar c, int column); 49 48 static int oe_region_width(owl_editwin *e, int start, int end, int width); … … 83 82 84 83 owl_free(e); 85 }86 87 static int oe_count_glyphs(const char *s)88 {89 int count = 0;90 const char *p;91 92 for(p = s; *p != 0; p = g_utf8_find_next_char(p, NULL))93 if (!g_unichar_ismark(g_utf8_get_char(p)))94 count++;95 96 return count;97 84 } 98 85
Note: See TracChangeset
for help on using the changeset viewer.