[geany/geany] ffb33c: Show/hide fold margin on sync, not on split
Nick Treleaven
git-noreply at xxxxx
Thu Jul 26 00:02:19 UTC 2012
Branch: refs/heads/document-messages
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Mon, 19 Dec 2011 17:58:51
Commit: ffb33c52993256f8b21f9a62cf32c458c91e8e8d
https://github.com/geany/geany/commit/ffb33c52993256f8b21f9a62cf32c458c91e8e8d
Log Message:
-----------
Show/hide fold margin on sync, not on split
Modified Paths:
--------------
plugins/splitwindow.c
Modified: plugins/splitwindow.c
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -140,6 +140,8 @@ static void sync_to_current(ScintillaObject *sci, ScintillaObject *current)
/* override some defaults */
set_line_numbers(sci, geany->editor_prefs->show_linenumber_margin);
scintilla_send_message(sci, SCI_SETMARGINWIDTHN, 1, 0 ); /* hide marker margin (no commands) */
+ if (!geany->editor_prefs->folding)
+ scintilla_send_message(sci, SCI_SETMARGINWIDTHN, 2, 0);
}
@@ -158,11 +160,9 @@ static void set_editor(EditWindow *editwin, GeanyEditor *editor)
sync_to_current(editwin->sci, editor->sci);
- /* margins */
+ /* for margin events */
g_signal_connect(editwin->sci, "sci-notify",
G_CALLBACK(on_sci_notify), NULL);
- if (!geany->editor_prefs->folding)
- scintilla_send_message(editwin->sci, SCI_SETMARGINWIDTHN, 2, 0);
gtk_label_set_text(GTK_LABEL(editwin->name_label), DOC_FILENAME(editor->document));
}
@@ 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