diff options
author | Thomas White <taw@bitwiz.org.uk> | 2017-03-27 08:22:17 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2017-03-27 08:22:17 +0200 |
commit | 3413239509a9a00d89199f8aa661504f43dcf585 (patch) | |
tree | 648b236b56c28d35ad9f24d45efe71fd9a8f2e97 /src/frame.h | |
parent | 4b0854d62b4b4e7ce0c721a6f9f43df595aacd72 (diff) |
Delete selected text
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h index b6ae617..6302edc 100644 --- a/src/frame.h +++ b/src/frame.h @@ -178,8 +178,10 @@ extern size_t pos_trail_to_offset(Paragraph *para, size_t offs, int trail); extern void insert_text_in_paragraph(Paragraph *para, size_t offs, const char *t); -extern void delete_text_in_paragraph(Paragraph *para, - size_t offs1, size_t offs2); +extern void delete_text_from_frame(struct frame *fr, struct edit_pos p1, struct edit_pos p2, + double wrap_w); + +extern void delete_text_in_paragraph(Paragraph *para, size_t offs1, ssize_t offs2); extern SCBlock *split_paragraph(struct frame *fr, int pn, size_t pos, PangoContext *pc); |