diff --git a/src/ls/main.cpp b/src/ls/main.cpp index d1f1ba7b0..a611f2c52 100644 --- a/src/ls/main.cpp +++ b/src/ls/main.cpp @@ -43,7 +43,7 @@ handle_path(int dirfd, std::filesystem::path& dir, const char* p, const lsContex static int handle_inode(std::filesystem::path& dir, const char* p, const struct stat* st, const lsContext& ctx){ (void)st; // FIXME handle symlink (dereflinks) - std::cout << p << std::endl; + std::cout << p << '\n'; auto s = dir / p; ctx.nc.render_image(s.c_str(), ctx.alignment, NCBLIT_DEFAULT, NCSCALE_SCALE); return 0; diff --git a/src/poc/sgr-direct.c b/src/poc/sgr-direct.c index fd994ebcb..db51136d4 100644 --- a/src/poc/sgr-direct.c +++ b/src/poc/sgr-direct.c @@ -19,7 +19,7 @@ int main(void){ return EXIT_FAILURE; } printf("%08x ", i); - if(++e % 6 == 0){ + if(++e % 8 == 0){ printf("\n"); } }