mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
Get remoteness of correct directory
The history file is stored in the data dir, not the config dir, so the remoteness of the former is the one which matters.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
use crate::{
|
||||
common::{str2wcstring, subslice_position, wcs2string},
|
||||
flog::FLOG,
|
||||
path::{path_get_config_remoteness, DirRemoteness},
|
||||
path::{path_get_data_remoteness, DirRemoteness},
|
||||
};
|
||||
|
||||
/// History file types.
|
||||
@@ -243,7 +243,7 @@ fn should_mmap() -> bool {
|
||||
}
|
||||
|
||||
// mmap only if we are known not-remote.
|
||||
path_get_config_remoteness() != DirRemoteness::remote
|
||||
path_get_data_remoteness() != DirRemoteness::remote
|
||||
}
|
||||
|
||||
fn replace_all(s: &mut Vec<u8>, needle: &[u8], replacement: &[u8]) {
|
||||
|
||||
Reference in New Issue
Block a user