Changeset 4ccd92c
- Timestamp:
- Aug 31, 2009, 3:01:12 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 0d9c90c
- Parents:
- 94ef58c
- git-author:
- Nelson Elhage <nelhage@mit.edu> (08/27/09 00:29:50)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (08/31/09 15:01:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r27f6487 r4ccd92c 1202 1202 1203 1203 if (!e->dotsend) return(0); 1204 if ( e->index != e->bufflen) return (0);1204 if (!owl_editwin_is_at_end(e)) return (0); 1205 1205 1206 1206 oe_save_excursion(e, &x); … … 1208 1208 owl_editwin_point_move(e, -3); 1209 1209 1210 if(str cmp(e->buff + e->index, "\n.\n") == 0) {1210 if(strncmp(e->buff + e->index, "\n.\n", 3) == 0) { 1211 1211 owl_editwin_point_move(e, 1); 1212 1212 zdot = 1; 1213 1213 } else if(e->index == e->lock && 1214 str cmp(e->buff + e->index, ".\n") == 0) {1214 strncmp(e->buff + e->index, ".\n", 2) == 0) { 1215 1215 zdot = 1; 1216 1216 } 1217 1217 1218 1218 if(zdot) { 1219 owl_editwin_replace(e, 2, ""); 1219 owl_editwin_set_mark(e); 1220 owl_editwin_move_to_end(e); 1221 owl_editwin_replace_region(e, ""); 1220 1222 } 1221 1223
Note: See TracChangeset
for help on using the changeset viewer.