Commit Graph

19 Commits

Author SHA1 Message Date
Lazula
c6a895d859 Free second path string if file does not exist in getFortuneFile() 2022-07-20 00:19:25 +02:00
pancake
091b7c96c2
Fix last covs and support mount in ms ##fs 2022-07-08 09:51:21 +02:00
condret
a1b0293940 Fix fortune file detection ##core 2022-06-22 01:42:44 +02:00
pancake
740c5fef9f Fixes for the R2_FORTUENS system and home paths ##shell 2022-06-22 00:56:29 +02:00
condret
8390a2f72f Implement loading fortunes from home dir 2022-06-17 01:07:00 +02:00
condret
89ce21d68a Enable adding fortune files without rebuilding 2022-06-17 01:07:00 +02:00
pancake
f3563759ef
Move more context fields out of the globals ##cons
* Fix |H |T and | suffixes when webserver in background
* Ignore noflush in the RCons.flush() call
2021-09-30 01:04:03 +02:00
pancake
2284394120 Honor bool in io.va, scr.interactive, scr.prompt and cfg.fortunes ##core 2021-08-18 12:09:20 +02:00
Filipe Laíns
163312bff3 fortunes: remove nsfw and creepy fortunes
These fortunes make a lot of people unconfortable and can be trigering
for some. Even if they are not active by default, they should have no
place here if you are trying to be a welcoming project.

There are a lot of other ways to be quirky and fun, I see no logical
reason to have these fortunes knowing they will negatively impact
people.

Signed-off-by: Filipe Laíns <lains@riseup.net>
2020-11-29 01:14:28 +01:00
pancake
d441baad62
Fix latest COVs, remove dead code and unnecessary global variables (#17231)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-22 19:37:31 +08:00
Anton Kochkov
0c46c3e1e3 Some coverity fixes 2020-01-08 14:16:11 +01:00
GustavoLCR
07b5e062f2 Fix #15545 - Fix NULL derefs after r_file_slurp() fails 2019-12-15 23:38:38 +01:00
dok
e0e8da58ef Add utf8 clippy (#15138) 2019-10-01 01:15:01 +02:00
pancake
c40ddd3552 Several improvements in the Visual mode (help, tabs, ...) ##visual
- Remove the V@ command - not intuitive and a bit alien
- rotating print modes with tab was segfault because of UB
- Implement recursive interactive help
- Support ranged cursor selections (for pxd, pxb, pxq, ...)
- 'i' in pxb visual runs Vd1 to edit the bits under the cursor
- V' is no longer mixed with Vt
- Properly restore the print sub-modes in tabs
- Smart tab key hints (beter located and shorter)
2019-01-02 02:09:31 +01:00
Paul I
5180e0220f Add R2_PLUGINS, R2_EXTRAS, R2_BINDINGS macros (#9994) 2018-05-02 15:58:14 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
pancake
303820dbac Initial purge of R2_PREFIX towards dir.prefix 2018-01-16 11:13:21 +01:00
pancake
a0a7ab67b8 Fix empty fortune message issue 2017-09-12 00:57:55 +02:00
Fangrui Song
a4997feb34 Move fortunes to libr/core/fortune.c (#8424) 2017-09-12 00:41:07 +02:00