Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/vifm/vifm

Vifm is a file manager with curses interface, which provides Vim-like environment for managing objects within file systems, extended with some useful ideas from mutt.
https://github.com/vifm/vifm

Fix potential NULL dereference in ops.c:op_cp()

Found by Clang Analyzer.

2e8e24b07dfa2fbbba6dbbedb5852635fa2ab94c authored over 2 years ago by xaizek <[email protected]>
Handle more memory allocation failures

Far from the complete list, but this increases number of the checks
nonetheless.

Found by GCC S...

b828e37708b070a63488973d5a1bb4e76424bf7d authored over 2 years ago by xaizek <[email protected]>
Fix memory leak from bar in progress dialog

c6a48ec8ec5a9df0c9cd649562108160da6fbfe5 authored over 2 years ago by xaizek <[email protected]>
Fix eval hack that works around command len limit

It never worked... The use of `i` there was a mistake...

Found by GCC Static Analyzer.

c0a84a60e67140a02f955e2810f836e51a095922 authored over 2 years ago by xaizek <[email protected]>
Cleanup engine/completion to get better code

Prompted by GCC Static Analyzer.

c9e35e2ef1fda436a1696e49ad8d14b160ac3059 authored over 2 years ago by xaizek <[email protected]>
Handle strdup() returning NULL in engine/cmds.c

Found by GCC Static Analyzer.

02803957af1453ab343b3e949480edea587ee3b2 authored over 2 years ago by xaizek <[email protected]>
Remove dead assignment in find_view_macro()

Found by Clang Analyzer.

647d6f16b099976b0837e577bf4aaf4a3485b453 authored over 2 years ago by xaizek <[email protected]>
Stash selection if cl fails due to non-symlink

bb9e3fd36b06fa58dfc0d2ee3692ea7478b042f5 authored over 2 years ago by xaizek <[email protected]>
Fix off-by-one error in pick_out_decoration()

There would be no overrun, because get_type_str() returns short strings,
but still nice to have ...

79b348e17036e655ed79508b6c0ea737e03c485c authored over 2 years ago by xaizek <[email protected]>
Remove one dead-code line in attr_dialog_nix.c

Found by Coverity.
CID 1497213: Control flow issues (DEADCODE)

eae377f24fdc2a87908ebadfe9553d8616e1b760 authored over 2 years ago by xaizek <[email protected]>
Remove weird NULL check from get_view_data()

Doesn't looks like `vi->view` can be NULL and it's always used as if it
can't be.

1e7334b6f094c18607599abe3046fb2043cab942 authored over 2 years ago by xaizek <[email protected]>
Explicitly ignore get_bool result in load_filters

It doesn't need to be handled, so state that.

101fb2645c669c423fd755be6425fbef0ef992c9 authored over 2 years ago by xaizek <[email protected]>
Initialize some stack vars in launch_external()

To not call close() on something unrelated.

Found by Coverity.
CID 1497216: Security best prac...

5cce6cfb279764e163ed17814c00c281c3c1299d authored over 2 years ago by xaizek <[email protected]>
Initialize argvp in engine/cmds.c:init_cmd_info()

Found by Coverity.
CID 1497205: Uninitialized variables (UNINIT)

f72bcfc4de824dfae4d9cc0f2e0cdb7b51ecf99b authored over 2 years ago by xaizek <[email protected]>
Fix potential overflow in ui/tabs.c:clone_view()

Found by Coverity.
CID 1497210: (STRING_OVERFLOW)

cd4f1b180ea857adb23e66120fbecec975f3b645 authored over 2 years ago by xaizek <[email protected]>
Fix buffer overflow on too long program argument

Found by Coverity.
CID 1497217: (STRING_OVERFLOW)

ff6391e8373287f5f54bc3a6a753734f76d60d0a authored over 2 years ago by xaizek <[email protected]>
Make register_assoc() don't leak on error

Thanks to Coverity.
CID 1497222: Resource leaks (RESOURCE_LEAK)

463e80c57de524daa4205a0e37ef30329ca05e71 authored over 2 years ago by xaizek <[email protected]>
Improve ts reading from legacy vifminfo

Result of time() could theoretically be cut off.

Thanks to Coverity.
CID 1497223: High impact ...

e07c7b596c95839be88e5aed2690010c3dff6c21 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'fixes'

Fix memory error in :media menu on an unlikely error path.

Thanks to dcb314.

Fix tests on Wind...

d3acd2414ffe430ccc7561947457fb0e5b4d2f2f authored over 2 years ago by xaizek <[email protected]>
Fix possible use after free in media menu

Thanks to dcb314.

Fixes #817 on GitHub.

e48635e245143aa25c9e5ef11eed7a8bd2994b1e authored over 2 years ago by xaizek <[email protected]>
Regenerate config.h on Windows on Makefile changes

To not have to remove it manually after editing defines in Makefile.

7a356c6b324c682bd34d367f46bb1a933e6f690a authored over 2 years ago by xaizek <[email protected]>
Move Windows-specific defines to config.h

This fixes tests on Windows after
8ff2d796ccf472337c895582bf560429a356e2ad:

Rely on defines...

2eecf6e5cf466a4470c47436303dc1aa639813a3 authored over 2 years ago by xaizek <[email protected]>
Undefine more env variables before running tests

So that tests behave consistently regardless of the environment in which
they are run:
* $STY
...

b46e7ca8a5637088ed8a029f24b14987123631d7 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'openbsd-fixes'

Fix processing of extended keys on OpenBSD.

Install Default-256.vifm as a sample color scheme.
...

59c521dfc457e5dcba4d7804612a25dca6d48bb8 authored over 2 years ago by xaizek <[email protected]>
Make one utils/regexp.c test more portable

Check its applicability at runtime rather than assuming it won't work
only on OS X.

7883699e3e740c8c7383dc9ff325475035f12332 authored over 2 years ago by xaizek <[email protected]>
Make one utils/matcher test more portable

92c324b1b4b320946f8dbb96c5cb1e6eec52a9f1 authored over 2 years ago by xaizek <[email protected]>
Work around atime not being preserved on copy

On OpenBSD when 'syscalls' is set. Something kernel specific?

c258a6412b83fafdebdfb3a06d6297f4c38af657 authored over 2 years ago by xaizek <[email protected]>
More readable fileops/generic.c:perform_merge()

62ea40a3f5484deac3c9bc5e652deb4ccd0ca2ac authored over 2 years ago by xaizek <[email protected]>
Improve clang detection in tests/Makefile

7adcab99305b12cbb09fbc99d27da7b1b0ababf2 authored over 2 years ago by xaizek <[email protected]>
Work around OpenBSD's ports mocking `chown`

Ideally, this would check for running under ports, but not sure how to
do this reliably.

8b85cdcaa9aec6fc746a57478c53a58ac36271a7 authored over 2 years ago by xaizek <[email protected]>
Rely on defines from config.h in tests/Makefile

Rather then duplicating them.

8ff2d796ccf472337c895582bf560429a356e2ad authored over 2 years ago by xaizek <[email protected]>
Add "TESTS_" prefix to 2 extvars in tests/Makefile

This is needed to not pick up CFLAGS/LDFLAGS which can be accidentally
exported by something (at...

01981e6ce6c9a64d7d358e3eefe89cb20180ac38 authored over 2 years ago by xaizek <[email protected]>
Disable one chmod test based on a runtime test

Instead of hard-coding check for OS X.

8522c12b5d02a66628fd12f378147497d914c56f authored over 2 years ago by xaizek <[email protected]>
Make tests don't depend on $TERM existing

b6108a6398e35b148146826c2489493ae75625f3 authored over 2 years ago by xaizek <[email protected]>
Install Default-256.vifm as a sample color scheme

For consistency and to be able to use it in packaging to not
accidentally overwrite user's file ...

b17e2050c86672f3bc7d3ef40e988f1bb9a5c8dc authored over 2 years ago by xaizek <[email protected]>
Fix processing of extended keys on OpenBSD

0933aec680c183bcc10a297bda99f8bfcd93f2cc authored over 2 years ago by xaizek <[email protected]>
Add parenthesis to a macro in fops_chown()

Just in case, although it should be safe here either way.

842a19e9158ff92a79e1424b28ede2290cd0036d authored over 2 years ago by xaizek <[email protected]>
Add a hint about absolute paths in :copy/:move

a36284f6bb24e935c8babe2437f87dbc5cc22faa authored over 2 years ago by xaizek <[email protected]>
Improve wording in documentation on :copen

968770c3618e789be1cf750d28accbfddbc548a7 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'diff-improvements'

Changed [c and ]c to also traverse added/missing entries.

Added CmpUnmatched and CmpBlank highl...

1aedc16b74bd2acd63e3e1bf84d9d85eb95df9d2 authored over 2 years ago by xaizek <[email protected]>
Add CmpUnmatched and CmpBlank highlight groups

For highlighting added/removed and blank entries in compare views.

Thanks to qsmodo.

See #796 ...

181206354a1b8f39777903f2af246fefdc30db93 authored over 2 years ago by xaizek <[email protected]>
Change [c and ]c to traverse kinds of all changes

Used to be only changed files, now also added/removed pairs as well.

Thanks to qsmodo.

Closes ...

8f4429343572170ae8132653c52d5c5354cfe334 authored over 2 years ago by xaizek <[email protected]>
Document CmpMismatch in hierarchy of hi groups

436997605d88ec198f09eff6345fc1b8bdcc1013 authored over 2 years ago by xaizek <[email protected]>
Make sample bg plugin do expand() on its args

73af6e641ec0451d08d45d197057bc44abb19d40 authored over 2 years ago by xaizek <[email protected]>
Block auto-commands when using :! in Vim plugin

Thanks to sak96.

Fixes vifm/vifm.vim#80 on GitHub.

818f88ec2de5043e61e4b112d14f580f28f53f60 authored over 2 years ago by xaizek <[email protected]>
Merge pull request #809 from dmlemos/sample-vifmrc-updates

vifmrc modernization

1a317eb3e8896bebc11e98fdbff896bdd62e0820 authored over 2 years ago by xaizek <[email protected]>
Update/fix filetype/viewers in sample vifmrcs

Wrap the first argument properly without adding an extra space.

9cbf46627ed9e4dd50ef3f356469fa063181d68d authored over 2 years ago by xaizek <[email protected]>
Move 'vifminfo' to other options in sample vifmrcs

9ca2af9f9cb63ee1678993a3f2c64fd0b50bd4a9 authored over 2 years ago by xaizek <[email protected]>
Update some comments in sample vifmrcs

3d779703090de30a589209751e83806d231510de authored over 2 years ago by xaizek <[email protected]>
Drop excessive empty lines from sample vifmrcs

9920a6e0ef673cc48d4cd4a6d558bc58d8f05f14 authored over 2 years ago by xaizek <[email protected]>
More compact headers in sample vifmrcs

c4cef08e5afc212a1ba6f5d1664f3b7d917885f9 authored over 2 years ago by xaizek <[email protected]>
vifmrc: add headers

b8b198410b5ca6855686347531a1eea59c7c9fbb authored over 2 years ago by Diogo Lemos <[email protected]>
vifmrc: add extra options

2660d86e6b2d1c06740231a5537cd034122c0691 authored over 2 years ago by Diogo Lemos <[email protected]>
vifmrc: modernize file types

386a633f660e6fea21a43c42252dc6c0687764a2 authored over 2 years ago by Diogo Lemos <[email protected]>
Merge branch 'get-layout-in-lua'

Plugins
-------

* Add VifmTab:getlayout() method
* Make vifm.tabs.get() easier to use

f413354afde646782671a8950bf12d5a47c52b83 authored over 2 years ago by xaizek <[email protected]>
Add VifmTab:getlayout() method

Provides information similar to that provided by layoutis() builtin
function.

d1b580bf1f9adb4520d7c2838b45bd8ceec12d19 authored over 2 years ago by xaizek <[email protected]>
Add an extra test for user mapping onto a multikey

7e39d4ee4698ab23030f37d4a321ddca2ddde58d authored over 2 years ago by xaizek <[email protected]>
Make vifm.tabs.get() easier to use

Use current tab if "index" field is omitted and make the parameter
optional.

555cd2f47cf8308c9fb64158c50ef85b17df3a4c authored over 2 years ago by xaizek <[email protected]>
Fix "retrives" typo in vifm-lua.txt file

5e5ee69eb13fbb69a22a56eb98a7151cdd06aabc authored over 2 years ago by xaizek <[email protected]>
Merge branch 'some-fixes'

Do not reset selection on :view command.

Thanks to Alexandre Viau.

Fix selection created prior...

0fcbe1bf0c4dd300841c15253c09cb3a3bf9422c authored over 2 years ago by xaizek <[email protected]>
Fix :keepsel not preserving statusbar messages

They were lost because save_msg flag wasn't checked before displaying
message about selected files.

5497f13d71548631ce4ace8146d166d71adad6b7 authored over 2 years ago by xaizek <[email protected]>
Rename ui/ui.c:{ top_line => mtop_line }

To demonstrate that it's similar to [lr]top_line[12].

bcc9404f8e55eb46634916594bebbcb08273d631 authored over 2 years ago by xaizek <[email protected]>
Fix mborder top line bit flickering on startup

It was noticeable in ssh, on Windows and when run under valgrind.
Mildly annoying :)

1cdbcc4048017488a6f7da9f4e406c00bc8c5108 authored over 2 years ago by xaizek <[email protected]>
Don't update invis mborder in touch_all_windows

7d867886fe8a7edbdd1fea32dd38ed72e9eb1813 authored over 2 years ago by xaizek <[email protected]>
Don't set background in ui/ui.c:*_layout()

It was done only for mborder for some reason, remove it.

3f4dd73e299edad2cb382b054c8e1bd9e7682fb7 authored over 2 years ago by xaizek <[email protected]>
Clarify what ui/ui.c:top_line is

24c0112fe20e5a8658640bfb45e0209741f24f7e authored over 2 years ago by xaizek <[email protected]>
Don't draw inactive cursor mark at load_stage 1

Otherwise it can be seen when no other TUI element has yet appeared.

64f50333b0ce898f7aa4d57b464a1c34f2b5232e authored over 2 years ago by xaizek <[email protected]>
Schedule redraw after VifmView:cd() to fix tabline

Otherwise when cd() is done on an inactive tab page, tabline might not
get updated and continue ...

171a79431fa1b7c79158c8822e87ab4a10623e59 authored over 2 years ago by xaizek <[email protected]>
Fix selection issues after on switching av to v

Selection created prior to running av in normal mode was showing up
after switching to a regular...

eb424edaf84bc82a844030150b08d51d9cef5197 authored over 2 years ago by xaizek <[email protected]>
Make a cast in cmd_completion.c more explicit

e249e162a27c38c62b2f811d326069f34d2cfc9c authored over 2 years ago by xaizek <[email protected]>
Make ull -> double conversion explicit

This should work fine, because the value is likely to always be much
smaller than ULLONG_MAX any...

e86462af662dd430c519be2765aa063837b18910 authored over 2 years ago by xaizek <[email protected]>
Do not reset selection on :view command

Thanks to Alexandre Viau.

3f5c6bb4fd7f83f0604e32f69f012fd7a94b959c authored over 2 years ago by xaizek <[email protected]>
Extract commands/misc tests fixture

Out of commands/misc.

7d71d5daadab4e9ade7f755e3577c617566f3d83 authored over 2 years ago by xaizek <[email protected]>
Free externally set resources in load_def_values()

This helps to avoid leaks in tests. Outside of tests stats_init() is
called only once.

7b19710124f1a1c4c640e76a577ec1d0658e67ff authored over 2 years ago by xaizek <[email protected]>
Update README of Vim plugin with :PeditVifm

b687a801d56f116533bbc45aa246f6f579a2897c authored over 2 years ago by xaizek <[email protected]>
Merge branch 'better-file-info'

Reformat File Info dialog to be more compact.

Thanks to chelovechishko.

Add :PeditVifm command...

088edcee0ba1f763704af406ddbb42abc09f5de8 authored over 2 years ago by xaizek <[email protected]>
Pass view to modes/file_info.c:fill_items()

To not overuse global variables.

07e62db233a561f8fdb492bfe962b8225aa9aaba authored over 2 years ago by xaizek <[email protected]>
Fix major/minor not being picked up on new glibc

Now must include <sys/sysmacros.h> for it.

00eef94a62e9e6580b559d674ed2735b3b9fe52c authored over 2 years ago by xaizek <[email protected]>
Make File Info dialog more compact

This makes it more readable in general and usable in a small terminal.

Thanks to chelovechishko...

cfcfb0f05bbbaddc22ed3bb0ef2f578078a54a10 authored over 2 years ago by xaizek <[email protected]>
Separate preparing and drawing of File Info dialog

The code was mixing the two activities. Avoid that by composing list of
strings and then printi...

c6928d9a81d65c59c483921ab4e8cb0dd37abf27 authored over 2 years ago by xaizek <[email protected]>
Add modes/file_info.c:draw_ctx_t::padding_y field

58f5335abf552f948655bc606e20d119a37fc1a1 authored over 2 years ago by xaizek <[email protected]>
Introduce drawing context into File Info mode

This should make it easier to modify how drawing is done.

18d607a09df6bc5ef945e8cf6143b6a4b3630c73 authored over 2 years ago by xaizek <[email protected]>
Add :PeditVifm command to the plugin

Along with corresponding :PeditVim inside Vifm session.

Thanks to Mukund Mauji (a.k.a. maujim)....

4d6636557d676ee0078639c40d48766e289e1545 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'regexp-case-sequences'

Add parsing of \c and \C sequences in regular expressions to force case
ignoring or matching res...

c94a05ff51074b1576a2574f1c655d02ec54b55b authored over 2 years ago by xaizek <[email protected]>
Improve comment in viewcolumn sample plugin

41f3ffd74cdd6608fddd3ecca19d47519c4cfad2 authored over 2 years ago by xaizek <[email protected]>
Add parsing of \c and \C sequences in regexps

They force case ignoring or matching respectively.

Thanks to filterfalse and Safal Piya (a.k.a....

8e9aeb0b03c75801430ea0cb2db2e9252735ca4c authored over 2 years ago by xaizek <[email protected]>
Add "Regular expressions" section to the docs

d887083fb729a0523ac19660915bb5c873bfd548 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'gs-memory'

Add %l/%"l and %L/%"L macros for the list of selected files. %f is not
empty if there is no sel...

fca5937339cf66029256a13835e916ac633c4dbc authored over 2 years ago by xaizek <[email protected]>
Add %l/%"l and %L/%"L macros

For the list of selected files. %f is not empty if there is no
selection, which is not always d...

587dd0ceeab2cf51590bf34808ed7b5c17038cf5 authored over 2 years ago by xaizek <[email protected]>
Use ISO-like format for 'timefmt' in sample vifmrc

That is, add a year.

Thanks to Matt Alexander (a.k.a. mattalexx).

Closes #801 on GitHub.

7c7d7318b5386bf996195e8066e6434344dc331c authored over 2 years ago by xaizek <[email protected]>
Made gs remember selection for up to 10 last dirs

Thanks to ratnamhof and Matthias Braun (a.k.a. mb720).

15af6b89415729c0573f1a5b10300e7f0e04cf15 authored over 2 years ago by xaizek <[email protected]>
Merge branch 'shift_extended_keys'

Add angle-bracket notation for some shifted grey keys: <s-home>,
<s-end>, <s-left>, <s-right>, <...

2dc66471afa1e3063b255747923cb3a12456c18f authored over 2 years ago by xaizek <[email protected]>
Improve coverage of wchar_to_spec()

da50354cd5857c5841e7a90b67b4343235849cdb authored over 2 years ago by xaizek <[email protected]>
Make wchar_to_spec() more consistent

Use a- instead of m- for Alt + letter, like is done for Alt + F1, etc.
keys.

Also display <a-s-...

5873a5302214e420e37e568201f17b680b46314f authored over 2 years ago by xaizek <[email protected]>
Docs and other missing bits for new <keys>

59a6a7deef0d51c0436960aac7cb81cafbe2a6a5 authored over 2 years ago by xaizek <[email protected]>
add the curses supported shift key definitions so they can be mapped

0248fea248c172d1c11af11a7d7a5808f9892ff9 authored over 2 years ago by M Kelly <[email protected]>
Merge branch 'win-and-wine'

Fix `start` in file[x]type commands on Windows not being considered as
present.

Remove "start" ...

38d9696785f1ef4eedcd2ada81934fb1fe67d2d1 authored over 2 years ago by xaizek <[email protected]>
Remove "start" from sample vifmrc for Windows

It doesn't seem to open files like explorer does, not sure why I thought
that it does.

b4b47c52c8fb345f08b18d795391c8a66ba763c6 authored over 2 years ago by xaizek <[email protected]>
Fix `start` present detection on Windows

It's a builtin.

3b5cdd1f0eccc780c88788902d43b0e45237032f authored over 2 years ago by xaizek <[email protected]>
Disable some tests when running in Wine

Those which started to fail on newer Wine (v6-v7).

91462e2497d4efa84dc5e8b928dee45ccc6f1e05 authored over 2 years ago by xaizek <[email protected]>