Changeset dc7884d for editwin.c


Ignore:
Timestamp:
Jul 21, 2009, 8:52:30 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b00c0a1
Parents:
b39a9cd
git-author:
Nelson Elhage <nelhage@mit.edu> (07/21/09 20:52:11)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/21/09 20:52:30)
Message:
editwin: On zdot, don't include the trailing . in the result.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r435d6b2 rdc7884d  
    11991199static int owl_editwin_check_dotsend(owl_editwin *e)
    12001200{
    1201   int zdot;
     1201  int zdot = 0;
    12021202  oe_excursion x;
    12031203
     
    12091209  owl_editwin_point_move(e, -3);
    12101210
    1211   zdot = (strcmp(e->buff + e->index, "\n.\n") == 0);
     1211  if(strcmp(e->buff + e->index, "\n.\n") == 0) {
     1212    owl_editwin_point_move(e, 1);
     1213    owl_editwin_replace(e, 2, "");
     1214    zdot = 1;
     1215  }
    12121216
    12131217  oe_restore_excursion(e, &x);
Note: See TracChangeset for help on using the changeset viewer.