[url] fix some url opening issues

pull/1285/head
Tim Stack 4 months ago
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()] lnav_data.ld_active_files.fc_file_names[ul->get_path()]
.with_filename(fn) .with_filename(fn)
.with_init_location(file_loc); .with_init_location(file_loc);
lnav_data.ld_active_files.fc_files_generation += 1;
isc::to<curl_looper&, services::curl_streamer_t>().send( isc::to<curl_looper&, services::curl_streamer_t>().send(
[ul](auto& clooper) { clooper.add_request(ul); }); [ul](auto& clooper) { clooper.add_request(ul); });
lnav_data.ld_files_to_front.emplace_back(fn, file_loc); 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 if ((st.st_mtime != ms_iter->second.ms_mtime
|| st.st_size != ms_iter->second.ms_file_size) || st.st_size != ms_iter->second.ms_file_size)
&& (st.st_size < 10 * 1024 && (st.st_size < 10 * 1024
|| ms_iter->second.ms_file_size == 0
|| !ms_iter->second.ms_metadata.m_sections_tree || !ms_iter->second.ms_metadata.m_sections_tree
.empty())) .empty()))
{ {
@ -921,7 +922,7 @@ textfile_sub_source::rescan_files(textfile_sub_source::scan_callback& callback,
this->tss_doc_metadata[lf->get_filename()] this->tss_doc_metadata[lf->get_filename()]
= metadata_state{ = metadata_state{
st.st_mtime, st.st_mtime,
static_cast<file_ssize_t>(lf->get_index_size()), lf->get_index_size(),
lnav::document::discover_structure( lnav::document::discover_structure(
content, content,
line_range{0, -1}, line_range{0, -1},

Loading…
Cancel
Save