Skip to content

Commit 9f077dd

Browse files
committed
style(popup): deno fmt
1 parent 912ebaa commit 9f077dd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

popup/vim.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ function toPopupSetOptionsOptions(
5555
options: Partial<Omit<OpenOptions, "bufnr" | "noRedraw">>,
5656
): vimFn.PopupSetOptionsOptions {
5757
const v: vimFn.PopupCreateOptions = {
58-
line: options.row ? handleRelative(options.relative ?? "editor", options.row) : undefined,
59-
col: options.col ? handleRelative(options.relative ?? "editor", options.col) : undefined,
58+
line: options.row
59+
? handleRelative(options.relative ?? "editor", options.row)
60+
: undefined,
61+
col: options.col
62+
? handleRelative(options.relative ?? "editor", options.col)
63+
: undefined,
6064
pos: options.anchor ? posFromAnchor(options.anchor) : undefined,
6165
fixed: true, // To keep consistent with the behavior of Neovim's floating window
6266
flip: false, // To keep consistent with the behavior of Neovim's floating window

0 commit comments

Comments
 (0)