From 467450fdce1ebffc105a9feff4275011f8d9f581 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 22 Dec 2010 13:44:41 +0000 Subject: [PATCH] Scroll to the current line when moving the cursor to the next cursor position in a snippet (#3139490). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5495 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ src/editor.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 03585644..3aa396b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * src/interface.c, geany.glade: Split Preferences dialog Interface tab into subnotebook to reduce height of dialog (fixes #3141277). Reuses existing strings. + * src/editor.c: + Scroll to the current line when moving the cursor to the next + cursor position in a snippet (#3139490). 2010-12-09 Nick Treleaven diff --git a/src/editor.c b/src/editor.c index 5b79ae40..95008e9e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2427,7 +2427,7 @@ void editor_goto_next_snippet_cursor(GeanyEditor *editor) else snippet_cursor_insert_pos += offset; - sci_set_current_position(sci, snippet_cursor_insert_pos, FALSE); + sci_set_current_position(sci, snippet_cursor_insert_pos, TRUE); } else {