Bugfix for <selection> files having weird truncation issues
This commit is contained in:
parent
86c5d0c150
commit
0597d77f3f
4
bb.c
4
bb.c
@ -30,7 +30,7 @@
|
|||||||
#define BB_NAME "bb"
|
#define BB_NAME "bb"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BB_VERSION "0.28.0"
|
#define BB_VERSION "0.28.1"
|
||||||
#define MAX_BINDINGS 1024
|
#define MAX_BINDINGS 1024
|
||||||
#define SCROLLOFF MIN(5, (winsize.ws_row-4)/2)
|
#define SCROLLOFF MIN(5, (winsize.ws_row-4)/2)
|
||||||
|
|
||||||
@ -385,7 +385,7 @@ static entry_t* load_entry(bb_t *bb, const char *path)
|
|||||||
if (strcmp(entry->fullname, "/") == 0) {
|
if (strcmp(entry->fullname, "/") == 0) {
|
||||||
entry->name = entry->fullname;
|
entry->name = entry->fullname;
|
||||||
} else {
|
} else {
|
||||||
entry->name = &entry->fullname[strlen(bb->path)];
|
entry->name = strrchr(entry->fullname, '/') + 1; // Last path component
|
||||||
}
|
}
|
||||||
if (S_ISLNK(filestat.st_mode))
|
if (S_ISLNK(filestat.st_mode))
|
||||||
entry->linkedmode = linkedstat.st_mode;
|
entry->linkedmode = linkedstat.st_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user