Skip to content

Commit dacb203

Browse files
committed
better detection of abs filenames on win
might fix UNC paths
1 parent 423eda7 commit dacb203

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- save and restore more view settings
88
- add "Merge column" and "Merge tab" submenus
99
- update interface during recomp, update regions during drag
10+
- better detection of absolute filenames on windows
1011
- various small bugfixes
1112

1213
## 9.0.9 2025/05/28

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ flatpak uninstall nip4
152152

153153
- niftiio is annoying to build, skip it.
154154

155-
- x265 is annoying to build, skip it
156-
157155
- we skip imagemagick as well, too huge
158156

159157
## Packaging for flathub

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('nip4', 'c',
22
# ie. a major after nip2 8.9 for workspace save file versioning
3-
version: '9.0.10',
3+
version: '9.0.10-1',
44
license: 'GPL',
55
meson_version: '>=0.64',
66
default_options: [

src/util.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,10 +1772,12 @@ is_absolute(const char *fname)
17721772
*
17731773
* We should probably look out for whitespace.
17741774
*/
1775-
return buf[0] == '/' || (buf[0] != '\0' && buf[1] == ':');
1775+
return buf[0] == '/' ||
1776+
buf[0] == '\\' ||
1777+
(buf[0] != '\0' && buf[1] == ':');
17761778
}
17771779

1778-
/* Are two filenames pointng at the same file? Expand, absoluteize, nativise.
1780+
/* Are two filenames pointing at the same file? Expand, absoluteize, nativise.
17791781
*/
17801782
gboolean
17811783
filenames_equal(const char *f1, const char *f2)

0 commit comments

Comments
 (0)