Skip to content

Commit baf6070

Browse files
committed
nvim: rename OpenWindowConfig to WindowConfig
1 parent 3ca34c9 commit baf6070

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

nvim/apidef.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ func CreateBuffer(listed, scratch bool) Buffer {
530530
// this should not be used to specify arbitrary WM screen positions.
531531
//
532532
// The returns the window handle or 0 when error.
533-
func OpenWindow(buffer Buffer, enter bool, config *OpenWindowConfig) Window {
533+
func OpenWindow(buffer Buffer, enter bool, config *WindowConfig) Window {
534534
name(nvim_open_win)
535535
}
536536

nvim/apitool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ var nvimTypes = map[string]string{
301301
"*ClientVersion": "Dictionary",
302302
"ClientMethods": "Dictionary",
303303
"ClientAttributes": "Dictionary",
304-
"*OpenWindowConfig": "Dictionary",
304+
"*WindowConfig": "Dictionary",
305305

306306
"[2]int": "ArrayOf(Integer, 2)",
307307
"[]Buffer": "ArrayOf(Buffer)",

nvim/nvim_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ func TestAPI(t *testing.T) {
526526
wantWidth := 40
527527
wantHeight := 20
528528

529-
cfg := &OpenWindowConfig{
529+
cfg := &WindowConfig{
530530
Relative: "cursor",
531531
Anchor: "NW",
532532
Width: wantWidth,

nvim/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ type VirtualTextChunk struct {
236236
HLGroup string `msgpack:",array"`
237237
}
238238

239-
// OpenWindowConfig represents a configs of OpenWindow.
239+
// WindowConfig represents a configs of OpenWindow.
240240
//
241241
// Relative is the specifies the type of positioning method used for the floating window.
242242
// The positioning method keys names:
@@ -279,7 +279,7 @@ type VirtualTextChunk struct {
279279
// This is useful when displaying a temporary float where the text should not be edited.
280280
// Disables 'number', 'relativenumber', 'cursorline', 'cursorcolumn','foldcolumn', 'spell' and 'list' options. 'signcolumn' is changed to `auto`.
281281
// The end-of-buffer region is hidden by setting `eob` flag of 'fillchars' to a space char, and clearing the EndOfBuffer region in 'winhighlight'.
282-
type OpenWindowConfig struct {
282+
type WindowConfig struct {
283283
Relative string `msgpack:"relative,omitempty"`
284284
Win Window `msgpack:"win,omitempty"`
285285
Anchor string `msgpack:"anchor,omitempty" empty:"NW"`

0 commit comments

Comments
 (0)