aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-22 17:25:05 +0200
committerThomas White <taw@physics.org>2017-10-22 17:25:05 +0200
commiteb1704edb0f616afa3631d78e0e4b2f093c93f22 (patch)
tree84de99d5eb4c72bb5bd6efd610d0217bfebda56e
parentd1397f434ed803c5b8820bf46a9ae06fdab20ece (diff)
Don't eliminate empty runs
They might be important
-rw-r--r--src/frame.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/frame.c b/src/frame.c
index b41e596..8296d7a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1101,23 +1101,6 @@ void delete_text_from_frame(struct frame *fr, struct edit_pos p1, struct edit_po
}
-static void eliminate_empty_runs(Paragraph *para)
-{
- int i;
-
- for ( i=0; i<para->n_runs; i++ ) {
- if ( para->runs[i].len_bytes == 0 ) {
- int j;
- printf("run %i empty\n", i);
- for ( j=i; j<para->n_runs-1; j++ ) {
- para->runs[j] = para->runs[j+1];
- }
- para->n_runs--;
- }
- }
-}
-
-
/* offs2 negative means "to end" */
size_t delete_text_in_paragraph(struct frame *fr, int npara, size_t offs1, ssize_t offs2)
{
@@ -1192,8 +1175,6 @@ size_t delete_text_in_paragraph(struct frame *fr, int npara, size_t offs1, ssize
}
- eliminate_empty_runs(para);
-
return sum_del;
}