summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_extui/shared.lua
diff options
context:
space:
mode:
authorMichele Sorcinelli <michelesr@users.noreply.github.com>2025-11-20 06:04:59 +0000
committerGitHub <noreply@github.com>2025-11-19 22:04:59 -0800
commit69b286c3bfb386597af9fc66625fdb6934594544 (patch)
tree12ed501f5248c6de084544741f6f82e78fc44e0b /runtime/lua/vim/_extui/shared.lua
parente0308dc14730052032f2b172c6d8b7abe398c755 (diff)
fix(vim.net): filetype detection, mark unmodified #36297
Problem: When running ":edit <url>", filetype detection is not triggered. Solution: Run the autocmds in the filetypedetect group after loading the content. Problem: After fetching remote content from a URL and adding it to the buffer, the buffer is marked as modified. This is inconsistent with the original netrw behavior, and it causes problems with `:e` to refresh or `:q` as it prompts for saving the file even if the user hasn't touched the content at all. Solution: Mark the buffer as unmodified right after adding the remote content to the buffer.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
0 files changed, 0 insertions, 0 deletions