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 17d3b0266ca7cee534692c784494ee9e5b8e964b

Fixed startup cursor position of other view
If quickview was opened on exit too.
Author: xaizek
Author date (UTC): 2012-06-16 20:39
Committer name: xaizek
Committer date (UTC): 2012-06-16 20:39
Parent(s): ab6df771a04d25f483b5618577546f227e6024bf
Signing key:
Tree: d92acb1d4011dffce1e0d6cd2bfed960d6ae0bfb
File Lines added Lines deleted
ChangeLog 3 0
src/filelist.c 8 2
src/ui.c 5 4
src/vifm.c 1 2
File ChangeLog changed (mode: 100644) (index 394341d0c..1f34a72d1)
74 74
75 75 Fixed restoring of file name filters. Fixed restoring of file name filters.
76 76
77 Fixed restoring of cursor position in the other view if quick view was
78 opened too.
79
77 80 0.7.2 to 0.7.3 0.7.2 to 0.7.3
78 81
79 82 Removed possibility of moving items in :file menu. Removed possibility of moving items in :file menu.
File src/filelist.c changed (mode: 100644) (index 5bf88cea6..a27d8153b)
... ... change_directory(FileView *view, const char *directory)
1293 1293 char newdir[PATH_MAX]; char newdir[PATH_MAX];
1294 1294 char dir_dup[PATH_MAX]; char dir_dup[PATH_MAX];
1295 1295
1296 save_view_history(view, NULL, NULL, -1);
1296 if(view->dir_entry[0].name[0] != '\0')
1297 {
1298 save_view_history(view, NULL, NULL, -1);
1299 }
1297 1300
1298 1301 #ifdef _WIN32 #ifdef _WIN32
1299 1302 directory = handle_mount_points(directory); directory = handle_mount_points(directory);
 
... ... change_directory(FileView *view, const char *directory)
1414 1417 /* Save the directory modified time to check for file changes */ /* Save the directory modified time to check for file changes */
1415 1418 update_dir_mtime(view); update_dir_mtime(view);
1416 1419
1417 save_view_history(view, NULL, "", -1);
1420 if(view->dir_entry[0].name[0] != '\0')
1421 {
1422 save_view_history(view, NULL, "", -1);
1423 }
1418 1424 return 0; return 0;
1419 1425 } }
1420 1426
File src/ui.c changed (mode: 100644) (index a83f1b584..b2b2c1304)
... ... change_window(void)
1248 1248 update_view_title(other_view); update_view_title(other_view);
1249 1249 } }
1250 1250
1251 if(curr_stats.view)
1251 if(curr_stats.view && curr_view->dir_entry[0].name[0] == '\0')
1252 1252 { {
1253 if(change_directory(other_view, other_view->curr_dir) >= 0)
1254 load_dir_list(other_view, 1);
1255 1253 if(change_directory(curr_view, curr_view->curr_dir) >= 0) if(change_directory(curr_view, curr_view->curr_dir) >= 0)
1256 load_dir_list(curr_view, 1);
1254 {
1255 load_dir_list(curr_view, 0);
1256 move_to_list_pos(curr_view, curr_view->list_pos);
1257 }
1257 1258 } }
1258 1259
1259 1260 update_view_title(curr_view); update_view_title(curr_view);
File src/vifm.c changed (mode: 100644) (index cae6d321a..35afab96f)
... ... load_initial_directory(FileView *view, const char *dir)
160 160 view->dir_entry = (dir_entry_t *)malloc(sizeof(dir_entry_t)); view->dir_entry = (dir_entry_t *)malloc(sizeof(dir_entry_t));
161 161 memset(view->dir_entry, 0, sizeof(dir_entry_t)); memset(view->dir_entry, 0, sizeof(dir_entry_t));
162 162
163 view->dir_entry[0].name = malloc(sizeof("../") + 1);
164 strcpy(view->dir_entry[0].name, "../");
163 view->dir_entry[0].name = strdup("");
165 164 view->dir_entry[0].type = DIRECTORY; view->dir_entry[0].type = DIRECTORY;
166 165
167 166 view->list_rows = 1; view->list_rows = 1;
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