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 4b05bad09c13f254fa8161741ff47ebb14d77e08

Update parse_file_spec() for Windows
Author: xaizek
Author date (UTC): 2016-01-01 13:57
Committer name: xaizek
Committer date (UTC): 2016-01-01 13:57
Parent(s): 1728589c6a43c75e2b992126b030242887741167
Signing key:
Tree: 1f29bbb849728e69b823e93ee9c367c74f0e20d9
File Lines added Lines deleted
src/utils/utils.c 5 6
File src/utils/utils.c changed (mode: 100644) (index 779bc438b..3889e6b6c)
58 58
59 59 #ifdef _WIN32 #ifdef _WIN32
60 60 static void unquote(char quoted[]); static void unquote(char quoted[]);
61 #else
62 static int is_line_spec(const char str[]);
63 61 #endif #endif
62 static int is_line_spec(const char str[]);
64 63
65 64 int int
66 65 vifm_system(char command[]) vifm_system(char command[])
 
... ... parse_file_spec(const char spec[], int *line_num)
560 559
561 560 #ifdef _WIN32 #ifdef _WIN32
562 561 colon = strchr(spec + (is_path_absolute(spec) ? 2 : 0), ':'); colon = strchr(spec + (is_path_absolute(spec) ? 2 : 0), ':');
562 if(colon != NULL && !is_line_spec(colon + 1))
563 {
564 colon = NULL;
565 }
563 566 #else #else
564 567 colon = strchr(spec, ':'); colon = strchr(spec, ':');
565 568 while(colon != NULL) while(colon != NULL)
 
... ... parse_file_spec(const char spec[], int *line_num)
604 607 return replace_tilde(path_buf); return replace_tilde(path_buf);
605 608 } }
606 609
607 #ifndef _WIN32
608
609 610 /* Checks whether str points to a valid line number. Returns non-zero if so, /* Checks whether str points to a valid line number. Returns non-zero if so,
610 611 * otherwise zero is returned. */ * otherwise zero is returned. */
611 612 static int static int
 
... ... is_line_spec(const char str[])
617 618 return (endptr != str && errno == 0 && *endptr == ':'); return (endptr != str && errno == 0 && *endptr == ':');
618 619 } }
619 620
620 #endif
621
622 621 int int
623 622 is_graphics_viewer(const char viewer[]) is_graphics_viewer(const char viewer[])
624 623 { {
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