aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-26 23:06:39 +0200
committerThomas White <taw@physics.org>2017-10-26 23:06:39 +0200
commit2a72c1e0ae7f65c70729cf2a108212cb3db69c8d (patch)
tree0e639046e5b5f2c89a98c21566b8b57f7eddaf3d
parent1a1a23332c81284745c478b60d64b654da27f196 (diff)
Delete newpara runs when deleting a paragraph
-rw-r--r--src/frame.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 8296d7a..5ada312 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1002,6 +1002,13 @@ static void delete_text_paragraph(Paragraph *para, int p, struct frame *fr)
continue;
}
+ if ( (sc_block_name(run->scblock) != NULL)
+ && (strcmp(sc_block_name(run->scblock), "newpara") == 0) )
+ {
+ sc_block_delete(&fr->scblocks, run->scblock);
+ return;
+ }
+
/* Delete from the corresponding SC block */
scblock_delete_text(run->scblock, run->scblock_offs_bytes,
run->scblock_offs_bytes + run->len_bytes);