Changeset 6e58ff2


Ignore:
Timestamp:
Apr 16, 2010, 6:04:00 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ef4700c
Parents:
7ba7d66
git-author:
Nelson Elhage <nelhage@mit.edu> (04/08/10 23:09:31)
git-committer:
Nelson Elhage <nelhage@mit.edu> (04/16/10 18:04:00)
Message:
Check for an unset mark in owl_editwin_replace_region.

Fixes #134.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r21dd391 r6e58ff2  
    543543  oe_excursion x;
    544544  int ret;
     545
     546  if (e->mark == -1) {
     547    owl_function_error("The mark is unset, there is no region to replace.");
     548    return 0;
     549  }
     550
    545551  oe_save_excursion(e, &x);
    546552
Note: See TracChangeset for help on using the changeset viewer.