aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-22 16:47:21 +0200
committerThomas White <taw@physics.org>2017-10-22 16:47:21 +0200
commit35ac667116aecec2847dd09c6950187fac0f9cdb (patch)
tree2f84e15369aa27acfaf725229181f8febe4051e4
parentaf102c4e0c1087556ca67eae111f2935898f0be9 (diff)
Rewrap the paragraph range in the correct frame (!)
-rw-r--r--src/sc_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index bb92458..ce246ca 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -1075,7 +1075,7 @@ static void unset_selection(SCEditor *e)
b = e->sel_start.para;
}
e->sel_active = 0;
- rewrap_paragraph_range(e->top, a, b, e->sel_start, e->sel_end, 0);
+ rewrap_paragraph_range(e->cursor_frame, a, b, e->sel_start, e->sel_end, 0);
}