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 3e714d4880bdef76e25bb73114db145d4ecf83a6

Fix segfault on exploring same file in both views
Check for abandoned view didn't check target view.

Thanks to filterfalse.
Author: xaizek
Author date (UTC): 2013-10-29 19:28
Committer name: xaizek
Committer date (UTC): 2013-10-29 19:28
Parent(s): b4bca679ffaa2907385ad3636749ec90685557af
Signing key:
Tree: 5a9fe4863e12378f7da6b8d746ba9f7d7d2d53b7
File Lines added Lines deleted
ChangeLog 4 1
src/modes/view.c 3 1
File ChangeLog changed (mode: 100644) (index f4a40f348..0ea205e67)
25 25 Fixed view mode highlighting for multi-byte characters. Thanks to Fixed view mode highlighting for multi-byte characters. Thanks to
26 26 filterfalse. filterfalse.
27 27
28 Fixed segmentation fault on exploring same file in both views. Thanks to
29 filterfalse.
30
28 31 0.7.6-beta to 0.7.6-beta2 0.7.6-beta to 0.7.6-beta2
29 32
30 33 Made building for Windows64 platform possible. Made building for Windows64 platform possible.
 
152 155
153 156 Don't let completion of the :history command eat all available memory. Don't let completion of the :history command eat all available memory.
154 157
155 Made all Ctrl-W x keys available view mode. Thanks to filterfalse.
158 Made all Ctrl-W x keys available in view mode. Thanks to filterfalse.
156 159
157 160 Expand environment variables in values of the 'fusehome' and 'trashdir' Expand environment variables in values of the 'fusehome' and 'trashdir'
158 161 options. Thanks to filterfalse. options. Thanks to filterfalse.
File src/modes/view.c changed (mode: 100644) (index 81cdace3a..503e787fc)
... ... enter_view_mode(int explore)
320 320 static int static int
321 321 try_ressurect_abandoned(const char full_path[], int explore) try_ressurect_abandoned(const char full_path[], int explore)
322 322 { {
323 const int same_file = vi->filename != NULL
323 const int same_file = vi->abandoned
324 && vi->view == (explore ? curr_view : other_view)
325 && vi->filename != NULL
324 326 && stroscmp(vi->filename, full_path) == 0; && stroscmp(vi->filename, full_path) == 0;
325 327 if(!same_file) if(!same_file)
326 328 { {
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