Changeset 50e671c


Ignore:
Timestamp:
Feb 8, 2009, 1:57:00 AM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d54035d
Parents:
e97c4a30
git-author:
Greg Price <price@MIT.EDU> (02/08/09 01:15:11)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/08/09 01:57:00)
Message:
Don't fill-paragraph the ending dot of the buffer.

When I leave a dot at the end of the message and then go back and edit
it a bit before sending, it's annoying for M-q to wrap the dot onto
the paragraph.  It really isn't part of the paragraph, so with this
patch we don't treat it as one.

Signed-off-by: Greg Price <price@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    re9bb404 r50e671c  
    10421042    if (e->buff[i] == '\n' && e->buff[i+1] == '\n') break;
    10431043
     1044    /* bail if we hit a trailing dot on the buffer */
     1045    if (e->buff[i] == '\n' && e->buff[i+1] == '.'
     1046        && ((i+2) >= e->bufflen || e->buff[i+2] == '\0'))
     1047      break;
     1048
    10441049    /* if we've travelled too far, linewrap */
    10451050    if ((e->buffx) >= e->fillcol) {
Note: See TracChangeset for help on using the changeset viewer.