[geany/geany] fa70c1: Fix page switching after closing the first page in RTL non-MRU mode (oops)
Colomban Wendling
git-noreply at xxxxx
Thu Jul 26 00:02:33 UTC 2012
Branch: refs/heads/document-messages
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 26 Dec 2011 15:56:36
Commit: fa70c160239fdc667332c2ece2ab3a31f4534221
https://github.com/geany/geany/commit/fa70c160239fdc667332c2ece2ab3a31f4534221
Log Message:
-----------
Fix page switching after closing the first page in RTL non-MRU mode (oops)
Modified Paths:
--------------
src/notebook.c
Modified: src/notebook.c
5 files changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -736,7 +736,10 @@ void notebook_remove_page(gint page_num)
if (page_num == page)
{
- page += (file_prefs.tab_order_ltr) ? 1 : -1;
+ if (file_prefs.tab_order_ltr)
+ page += 1;
+ else if (page > 0) /* never go negative, it would select the last page */
+ page -= 1;
if (file_prefs.tab_close_switch_to_mru)
{
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list