Skip to content

Commit

Permalink
Merge pull request #132 from noib3/fix-float-config
Browse files Browse the repository at this point in the history
Fix `WindowOpts` on nightly
  • Loading branch information
noib3 authored Feb 17, 2024
2 parents d60bdc9 + 64a04d0 commit 849f116
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 258 deletions.
6 changes: 3 additions & 3 deletions crates/api/src/ffi/win_config.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use types::{Boolean, BufHandle, Dictionary, Error, WinHandle};

use crate::types::KeyDict_float_config;
use crate::types::WindowOpts;

extern "C" {
// https://github.com/neovim/neovim/blob/v0.9.0/src/nvim/api/win_config.c#L159
pub(crate) fn nvim_open_win(
buffer: BufHandle,
enter: Boolean,
config: *const KeyDict_float_config,
config: *const WindowOpts,
err: *mut Error,
) -> WinHandle;

Expand All @@ -20,7 +20,7 @@ extern "C" {
// https://github.com/neovim/neovim/blob/v0.9.0/src/nvim/api/win_config.c#L202
pub(crate) fn nvim_win_set_config(
window: WinHandle,
config: *const KeyDict_float_config,
config: *const WindowOpts,
err: *mut Error,
);
}
3 changes: 2 additions & 1 deletion crates/api/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ pub use viml_ast_node::*;
pub use window_anchor::*;
pub use window_border::*;
pub use window_border_char::*;
pub use window_config::*;
pub(crate) use window_config::WindowOpts;
pub use window_config::{WindowConfig, WindowConfigBuilder};
pub use window_relative_to::*;
pub use window_style::*;
pub use window_title::*;
Expand Down
Loading

0 comments on commit 849f116

Please sign in to comment.