Skip to content

Commit 2259c00

Browse files
committed
fix: stat range error, use xdg_config_home default
1 parent c5f6b89 commit 2259c00

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/leetcode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env node
1+
#!/usr/bin/env node --no-warnings
22

33
require('../lib/cli').run();

lib/commands/stat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function showCal(problems) {
168168
const idx = now.diff(d, 'days');
169169

170170
const j = (N_WEEKS - idx / N_WEEKDAYS + 1) * 2;
171-
if (j >= 0) buf.write(MONTHS[d.month()], j);
171+
if (j >= 0) buf.write(MONTHS[d.month()], ~~j);
172172
}
173173
log.printf('%7s%s', ' ', buf.toString());
174174

lib/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ file.userHomeDir = function() {
2525
};
2626

2727
file.homeDir = function() {
28-
return path.join(this.userHomeDir(), '.lc');
28+
return path.join(this.userHomeDir(), '.config/lc');
2929
};
3030

3131
file.appDir = function() {

0 commit comments

Comments
 (0)