Skip to content

Commit

Permalink
Properly initialize project configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
techee committed May 27, 2024
1 parent 9437ee8 commit 178d7fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lsp/src/lsp-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
GeanyPlugin *geany_plugin;
GeanyData *geany_data;

LspProjectConfiguration project_configuration;
LspProjectConfigurationType project_configuration_type;
LspProjectConfiguration project_configuration = UnconfiguredConfiguration;
LspProjectConfigurationType project_configuration_type = UserConfigurationType;
gchar *project_configuration_file;

static gint last_click_pos;
Expand Down Expand Up @@ -837,6 +837,8 @@ static void on_project_open(G_GNUC_UNUSED GObject *obj, GKeyFile *kf,

static void on_project_close(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED gpointer user_data)
{
project_configuration = UnconfiguredConfiguration;
project_configuration_type = UserConfigurationType;
g_free(project_configuration_file);
project_configuration_file = NULL;

Expand Down

0 comments on commit 178d7fd

Please sign in to comment.