mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 00:40:30 +03:00
[url] fix some url opening issues
This commit is contained in:
parent
b14f68463c
commit
8187035b3d
@ -3118,6 +3118,7 @@ com_open(exec_context& ec, std::string cmdline, std::vector<std::string>& args)
|
||||
lnav_data.ld_active_files.fc_file_names[ul->get_path()]
|
||||
.with_filename(fn)
|
||||
.with_init_location(file_loc);
|
||||
lnav_data.ld_active_files.fc_files_generation += 1;
|
||||
isc::to<curl_looper&, services::curl_streamer_t>().send(
|
||||
[ul](auto& clooper) { clooper.add_request(ul); });
|
||||
lnav_data.ld_files_to_front.emplace_back(fn, file_loc);
|
||||
|
@ -882,6 +882,7 @@ textfile_sub_source::rescan_files(textfile_sub_source::scan_callback& callback,
|
||||
if ((st.st_mtime != ms_iter->second.ms_mtime
|
||||
|| st.st_size != ms_iter->second.ms_file_size)
|
||||
&& (st.st_size < 10 * 1024
|
||||
|| ms_iter->second.ms_file_size == 0
|
||||
|| !ms_iter->second.ms_metadata.m_sections_tree
|
||||
.empty()))
|
||||
{
|
||||
@ -921,7 +922,7 @@ textfile_sub_source::rescan_files(textfile_sub_source::scan_callback& callback,
|
||||
this->tss_doc_metadata[lf->get_filename()]
|
||||
= metadata_state{
|
||||
st.st_mtime,
|
||||
static_cast<file_ssize_t>(lf->get_index_size()),
|
||||
lf->get_index_size(),
|
||||
lnav::document::discover_structure(
|
||||
content,
|
||||
line_range{0, -1},
|
||||
|
Loading…
Reference in New Issue
Block a user