Commit 478e34a8 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

ouch: set the positions-file name also when using the legacy state dir

One should test a change before pushing, also when it worked last time.
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -257,9 +257,11 @@ bool have_statedir(void)
if (homedir != NULL) {
statedir = concatenate(homedir, "/.nano/");
if (stat(statedir, &dirstat) == 0 && S_ISDIR(dirstat.st_mode))
if (stat(statedir, &dirstat) == 0 && S_ISDIR(dirstat.st_mode)) {
poshistname = concatenate(statedir, POSITION_HISTORY);
return TRUE;
}
}
free(statedir);
xdgdatadir = getenv("XDG_DATA_HOME");
......@@ -289,9 +291,7 @@ bool have_statedir(void)
return FALSE;
}
if (ISSET(POS_HISTORY))
poshistname = concatenate(statedir, POSITION_HISTORY);
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment