about summary refs log tree commit diff stats
path: root/enumerate
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-05 11:46:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-05 11:46:34 -0700
commit9f78ec2d5e2a74ec24cc20cd3b1d60c3bdb9d605 (patch)
tree19a22a8ad181d7bc9727afc52e649a645a384e1b /enumerate
parent0d9d275314f98dceec1118e80eaab89a00c3ad3e (diff)
downloadmu-9f78ec2d5e2a74ec24cc20cd3b1d60c3bdb9d605.tar.gz
2155 - `mu` can now load all files in a directory
Diffstat (limited to 'enumerate')
-rw-r--r--enumerate/enumerate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerate/enumerate.cc b/enumerate/enumerate.cc
index 02349213..58497909 100644
--- a/enumerate/enumerate.cc
+++ b/enumerate/enumerate.cc
@@ -19,7 +19,7 @@ int enumerate_files_in_cwd_until(string last_file) {
   int num_files = scandir(".", &files, NULL, alphasort);
   for (int i = 0; i < num_files; ++i) {
     string curr_file = files[i]->d_name;
-    if (!isdigit(curr_file[0])) continue;
+    if (!isdigit(curr_file.at(0))) continue;
     if (!last_file.empty() && curr_file > last_file) break;
     cout << curr_file << '\n';
   }