]> Sergey Matveev's repositories - nnn.git/commit
make the cp/mv modification more robust
authorNRK <nrk@disroot.org>
Sun, 14 May 2023 16:13:15 +0000 (22:13 +0600)
committerNRK <nrk@disroot.org>
Mon, 15 May 2023 05:29:47 +0000 (11:29 +0600)
commit16899bda53b26d9c6d7d8524a5f682deb4fe294d
tree6c4ec284ccd20afa8add6b6da1fc6a0ab11794de
parentfe96bd6bc750d89bea98d40139aab95af7939f1e
make the cp/mv modification more robust

this makes it so that if the cp/mv commands are changed the in the
future, it will continue to work reliably instead of having hardcoded
indexes to modify the array.

the `#ifdef __linux__` is also removed, compilers should be smart enough
to see that PROGRESS_{CP,MV} are unused (on non-linux systems) and
optimize it out.
src/nnn.c