aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-03-31 11:19:47 +0200
committerThomas White <taw@bitwiz.me.uk>2018-03-31 11:19:47 +0200
commit3c52f56e0dfe71f108d0837abb8f96b2568eff40 (patch)
treed9f6c13b461e91d08becf1566445eb0a2ef05e0d /src/narrative_window.c
parent518be303d916d16f4816e3b9ae41cd42b0d5e7fd (diff)
Ensure cursor is somewhere before adding slide
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 913d8da..6bed315 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -324,6 +324,8 @@ static void add_slide_sig(GSimpleAction *action, GVariant *parameter,
SCBlock *templ;
NarrativeWindow *nw = vp;
+ sc_editor_ensure_cursor(nw->sceditor);
+
/* Split the current paragraph */
nsblock = split_paragraph_at_cursor(nw->sceditor);