Skip to content

Commit

Permalink
geanyminiscript: Don't access private fields
Browse files Browse the repository at this point in the history
This slightly changes the behavior as it will now follow the setting
from the project open at startup, if any.  It's however probably rather
an improvement, although caching the value is likely not to be a good
idea anyway.
  • Loading branch information
b4n committed Mar 3, 2016
1 parent c7c9560 commit e09f539
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geanyminiscript/src/gms.c
Expand Up @@ -235,9 +235,11 @@ static void item_activate(GtkMenuItem *menuitem, gpointer gdata)
*/
void plugin_init(GeanyData *data)
{
const GeanyIndentPrefs *iprefs = editor_get_indent_prefs(NULL);

gms_hnd = gms_new(geany->main_widgets->window,
data->interface_prefs->editor_font ,
data->editor_prefs->indentation->width,
iprefs->width,
geany->app->configdir
) ;

Expand Down

0 comments on commit e09f539

Please sign in to comment.