- Minimizes screen refresh with fast line redraws
- Tiny binary (typically less than 100KB)
- Portable
- - Statically-linked binary available
+ - Static binary available (no need to install)
- Language-agnostic plugins
- Minimal library deps, easy to compile
- Compile in/out features with make variables
case SEL_CDBEGIN: // fallthrough
case SEL_CDLAST: // fallthrough
case SEL_CDROOT:
- if (sel == SEL_CDHOME)
- dir = home;
- else if (sel == SEL_CDBEGIN)
- dir = ipath;
- else if (sel == SEL_CDLAST)
- dir = lastdir;
- else
- dir = "/"; /* SEL_CDROOT */
+ dir = (sel == SEL_CDHOME) ? home
+ : ((sel == SEL_CDBEGIN) ? ipath
+ : ((sel == SEL_CDLAST) ? lastdir
+ : "/" /* SEL_CDROOT */));
if (!dir || !*dir) {
printwait(messages[MSG_NOT_SET], &presel);