]> Sergey Matveev's repositories - nnn.git/commitdiff
fix incorrect comment
authorNRK <nrk@disroot.org>
Wed, 1 Jun 2022 13:42:29 +0000 (19:42 +0600)
committerNRK <nrk@disroot.org>
Wed, 29 Jun 2022 18:25:44 +0000 (00:25 +0600)
xextension() uses xmemrchr to find '.'

src/nnn.c

index d8e259e0ba768bee791fb7f8f92ca7eb3de24f34..e905b9dbb20e25026c9ec431ec3ab7469adb0716 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1033,7 +1033,7 @@ static inline bool is_prefix(const char *restrict str, const char *restrict pref
 
 /*
  * The poor man's implementation of memrchr(3).
- * We are only looking for '/' in this program.
+ * We are only looking for '/' and '.' in this program.
  * And we are NOT expecting a '/' at the end.
  * Ideally 0 < n <= xstrlen(s).
  */