mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 04:17:01 +00:00 
			
		
		
		
	Merge #28101 nvim__redraw
This commit is contained in:
		| @@ -62,7 +62,7 @@ function M.on_inlayhint(err, result, ctx, _) | ||||
|   if num_unprocessed == 0 then | ||||
|     client_hints[client_id] = {} | ||||
|     bufstate.version = ctx.version | ||||
|     api.nvim__buf_redraw_range(bufnr, 0, -1) | ||||
|     api.nvim__redraw({ buf = bufnr, valid = true }) | ||||
|     return | ||||
|   end | ||||
|  | ||||
| @@ -91,7 +91,7 @@ function M.on_inlayhint(err, result, ctx, _) | ||||
|  | ||||
|   client_hints[client_id] = new_lnum_hints | ||||
|   bufstate.version = ctx.version | ||||
|   api.nvim__buf_redraw_range(bufnr, 0, -1) | ||||
|   api.nvim__redraw({ buf = bufnr, valid = true }) | ||||
| end | ||||
|  | ||||
| --- |lsp-handler| for the method `textDocument/inlayHint/refresh` | ||||
| @@ -224,7 +224,7 @@ local function clear(bufnr) | ||||
|     end | ||||
|   end | ||||
|   api.nvim_buf_clear_namespace(bufnr, namespace, 0, -1) | ||||
|   api.nvim__buf_redraw_range(bufnr, 0, -1) | ||||
|   api.nvim__redraw({ buf = bufnr, valid = true }) | ||||
| end | ||||
|  | ||||
| --- Disable inlay hints for a buffer | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes