Changeset b2c1bd4
- Timestamp:
- Jan 17, 2008, 2:03:11 AM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 81312e4
- Parents:
- 84027015
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r84027015 rb2c1bd4 368 368 if (owl_util_can_break_after(c)) { 369 369 if (c != ' ') { 370 _owl_editwin_set_xy_by_index(e, ptr1 - e->buff); 371 owl_editwin_key_right(e); 370 i = ptr1 - e->buff; 371 _owl_editwin_set_xy_by_index(e, i); 372 _owl_editwin_insert_bytes(e, 1); 372 373 /* _owl_editwin_insert_bytes may move e->buff. */ 373 i = ptr1 - e->buff;374 _owl_editwin_insert_bytes(e,1);375 374 ptr1 = e->buff + i; 376 375 } … … 1045 1044 /* if we've travelled too far, linewrap */ 1046 1045 if ((e->buffx) >= e->fillcol) { 1046 int len = e->bufflen; 1047 1047 _owl_editwin_linewrap_word(e); 1048 /* we may have added a character. */ 1049 if (i < save) save += e->bufflen - len; 1048 1050 } 1049 1051 … … 1057 1059 e->buff[i]=' '; 1058 1060 } 1059 1061 1060 1062 /* fix spacing */ 1061 1063 i = _owl_editwin_get_index_from_xy(e); … … 1073 1075 owl_editwin_key_right(e); 1074 1076 } 1075 1076 1077 } 1077 1078
Note: See TracChangeset
for help on using the changeset viewer.