aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorYanze Li <liyzunique@gmail.com>2026-08-29 06:13:04 -0700
committerGitHub <noreply@github.com>2026-08-29 09:13:04 -0400
commitab707262b1ca4d5b9891f43ca18a59b0dd4154fe (patch)
tree9cccd9e939a154b1d393784ce212ecb0f652db04 /runtime/syntax/python.vim
parentcbb0775fb6309b4798e7a9c8671e5031ac85eed6 (diff)
downloadrneovim-ab707262b1ca4d5b9891f43ca18a59b0dd4154fe.tar.gz
rneovim-ab707262b1ca4d5b9891f43ca18a59b0dd4154fe.tar.bz2
rneovim-ab707262b1ca4d5b9891f43ca18a59b0dd4154fe.zip
fix(lsp): blank line before Content-Length breaks header parsing #41524
Problem: A blank line before the Content-Length header makes header parsing fail with "Content-Length not found in header". An LF in the 'name' state falls through to the 'invalid' state, which only return to 'name' at the *next* LF. That LF terminates the next line, so the line with Content-Length is swallowed. The same issue happens when a junk line is a partial match of the header name (e.g. "Cont\nContent-Length: ..."). Solution: When seeing an LF in the 'name' state, reset the cursor and stay in 'name' rather than entering 'invalid'.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions