nhaehnle / less Goto Github PK
View Code? Open in Web Editor NEWThe well-known pager, with performance improvements for huge files
License: Other
The well-known pager, with performance improvements for huge files
License: Other
The command less
skips the variables LESS_TERMCAP_*
defined in the lesskey
file (e.g. ~/.less
).
This is because, the function main()
retrieves the variables LESS_TERMCAP_*
before loading of the lesskey
file. I propose to just invert two lines.
I explain that in details on this site:
https://unix.stackexchange.com/a/377221/13999
This is the current source code at line 110 in main.c
/*
* Process command line arguments and LESS environment arguments.
* Command line arguments override environment arguments.
*/
is_tty = isatty(1);
get_term();
init_cmds();
init_charset();
init_line();
This is the fix I have validated on my computer:
/*
* Process command line arguments and LESS environment arguments.
* Command line arguments override environment arguments.
*/
is_tty = isatty(1);
init_cmds(); /* Load lesskey file before */
get_term(); /* getting variables LESS_TERMCAP_* */
init_charset();
init_line();
I have just inverted two lines: get_term();
and init_cmds();
Questions:
For information I have sent the same bug report a fix proposal to the less
mainteners.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.