Changeset ff69c56


Ignore:
Timestamp:
Feb 4, 2008, 9:23:16 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
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:
5435ab2
Parents:
1ba81e3
Message:
I think I like this better.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r1ba81e3 rff69c56  
    886886  /* are we starting on a space character? */
    887887  i = _owl_editwin_get_index_from_xy(e);
    888   while (e->buff[i] == ' ' || e->buff[i] == '\n' || e->buff[i] == '\0') {
     888  while (i > e->lock && (e->buff[i] == ' ' || e->buff[i] == '\n' || e->buff[i] == '\0')) {
    889889    /* find the first non-space */
    890890    owl_editwin_key_left(e);     
    891891    i = _owl_editwin_get_index_from_xy(e);
    892     if (i == e->lock) break;
    893892  }
    894893
Note: See TracChangeset for help on using the changeset viewer.