xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 5cdbfd79a0d176af7515617b92cdfc7dade9a5fc

Add handling of Escape to error dialogs
Thanks to laur89, Alexandre Viau and multiple other users who asked
about this.

Closes #472 on GitHub.
Author: xaizek
Author date (UTC): 2024-10-20 09:03
Committer name: xaizek
Committer date (UTC): 2024-10-20 09:03
Parent(s): 2da00c98a20e7d9f3f5baa571acadd69fb185b2b
Signing key: 99DC5E4DB05F6BE2
Tree: c068237bcfa74d7a916691b22b73b81185e6ab51
File Lines added Lines deleted
ChangeLog 3 0
src/modes/dialogs/msg_dialog.c 3 3
File ChangeLog changed (mode: 100644) (index e69370971..a986eb6ff)
76 76 being non empty instead of converting it to an integer). Thanks to being non empty instead of converting it to an integer). Thanks to
77 77 justpretending2. justpretending2.
78 78
79 Added handling of Escape to error dialogs. Thanks to laur89, Alexandre
80 Viau and multiple other users who asked about this.
81
79 82 Don't draw right padding on a truncated rightmost column of a transposed Don't draw right padding on a truncated rightmost column of a transposed
80 83 ls-like view. ls-like view.
81 84
File src/modes/dialogs/msg_dialog.c changed (mode: 100644) (index 6cef79d06..ad8cdc50b)
... ... prompt_error_msg_internal(const char title[], const char message[],
339 339 }, },
340 340 .kind = D_ERROR, .kind = D_ERROR,
341 341 .prompt_skip = prompt_skip, .prompt_skip = prompt_skip,
342 .accept_mask = MASK(DR_OK) | (prompt_skip ? MASK(DR_CANCEL) : 0),
342 .accept_mask = MASK(DR_OK, DR_CLOSE) | (prompt_skip ? MASK(DR_CANCEL) : 0),
343 343 }; };
344 344 enter(&data); enter(&data);
345 345
 
... ... get_control_msg(const dialog_data_t *data)
518 518
519 519 if(data->prompt_skip) if(data->prompt_skip)
520 520 { {
521 return "Press Return to continue or "
521 return "Press Enter/Escape to continue or "
522 522 "Ctrl-C to skip its future error messages"; "Ctrl-C to skip its future error messages";
523 523 } }
524 524
525 return "Press Return to continue";
525 return "Press Enter/Escape to continue";
526 526 } }
527 527
528 528 /* Formats dialog control message for custom set of responses. Returns pointer /* Formats dialog control message for custom set of responses. Returns pointer
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master