Skip to content

Commit

Permalink
updating & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Feb 9, 2022
1 parent 8752851 commit 9ce5a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,15 @@ pub fn display_floating_window(
"lua require\"sniprun.display\".fw_open({},{},\"{}\", true)",
row - 1,
col,
no_output_wrap(&result.to_string(), data, &DisplayType::TempFloatingWindow).replace("\n", "\\\n"),
no_output_wrap(&result.to_string(), data, &DisplayType::TempFloatingWindow)
.replace("\n", "\\\n"),
)),
Err(result) => nvim.lock().unwrap().command(&format!(
"lua require\"sniprun.display\".fw_open({},{},\"{}\", false)",
row - 1,
col,
no_output_wrap(&result.to_string(), data, &DisplayType::TempFloatingWindow).replace("\n", "\\\n"),
no_output_wrap(&result.to_string(), data, &DisplayType::TempFloatingWindow)
.replace("\n", "\\\n"),
)),
};
info!("display floating window res = {:?}", res);
Expand Down

0 comments on commit 9ce5a29

Please sign in to comment.