Display the path of the selected file in the CL

For convenience only, display the path in the terminal of the file clicked by the user. 
At least this helps me remembering which variable holds the file path
This commit is contained in:
crazyBaboon 2022-04-25 23:54:25 +01:00 committed by GitHub
parent a51d9eec96
commit ae5533375e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,6 +468,7 @@ file_browser_run(struct file_browser *browser, struct nk_context *ctx)
strncpy(browser->file, browser->directory, MAX_PATH_LEN);
n = strlen(browser->file);
strncpy(browser->file + n, browser->files[fileIndex], MAX_PATH_LEN - n);
puts(browser->file);
ret = 1;
}
}