Scroll cursor to 50% of the view for session files at startup.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1116 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2006-12-18 12:24:39 +00:00
parent 180069bc6c
commit cf28714548
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@
Don't log simple error messages like 'No text to find'.
* src/keyfile.c:
Open tabs left to right by default.
* src/keyfile.c:
Scroll cursor to 50% of the view for session files at startup.
2006-12-17 Enrico Tröger <enrico.troeger@uvena.de>

View File

@ -588,7 +588,7 @@ void configuration_apply_settings()
{
idx = document_get_n_idx(tabnum);
if (idx < 0) break;
sci_scroll_caret(doc_list[idx].sci);
sci_scroll_to_line(doc_list[idx].sci, -1, 0.5F);
tabnum++;
}
}