Skip to content

Commit

Permalink
Merge pull request #159 from michaelb/dev
Browse files Browse the repository at this point in the history
small fixes -> v1.2.3
  • Loading branch information
michaelb authored May 19, 2022
2 parents 57fcdc5 + 9180617 commit 09b5ac4
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 45 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## v1.2.3
- no signcolumn in Terminal display + fix line wrapping

## v1.2.2
- Run multiple code blocs at one in markup languages
- Run multiple code blocs at once in markup languages
- Fix multiline display for nvim-notify

## v1.2.1
Expand Down
79 changes: 43 additions & 36 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sniprun"
version = "1.2.2"
version = "1.2.3"
authors = ["michaelb <[email protected]>"]
edition = "2018"

Expand Down
3 changes: 2 additions & 1 deletion lua/sniprun/display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function M.term_open()
local chan = vim.api.nvim_open_term(buf, {})
vim.cmd("set scrollback=1")
vim.cmd('setlocal nonu')
vim.cmd('setlocal signcolumn=no')

vim.cmd("wincmd p")
M.term.opened = 1
Expand All @@ -64,7 +65,7 @@ function M.write_to_term(message, ok)
end

local width = vim.api.nvim_win_get_width(M.term.window_handle)
local half_width = (width - 6 - 4) / 2
local half_width = (width - 6 - 4 - 4) / 2
message = " "..string.rep("-",half_width)..status..string.rep("-", half_width).." ".."\n"..message

for line in message:gmatch("([^\n]*)\n?") do
Expand Down
12 changes: 6 additions & 6 deletions src/interpreters/Python3_original.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ impl Python3_original {
false
}
fn fetch_config(&mut self) {
let default_compiler = String::from("python3");
self.interpreter = default_compiler;
if let Some(used_compiler) = Python3_original::get_interpreter_option(&self.get_data(), "interpreter") {
if let Some(compiler_string) = used_compiler.as_str() {
info!("Using custom compiler: {}", compiler_string);
self.interpreter = compiler_string.to_string();
let default_interpreter = String::from("python3");
self.interpreter = default_interpreter;
if let Some(used_interpreter) = Python3_original::get_interpreter_option(&self.get_data(), "interpreter") {
if let Some(interpreter_string) = used_interpreter.as_str() {
info!("Using custom interpreter: {}", interpreter_string);
self.interpreter = interpreter_string.to_string();
}
}

Expand Down

0 comments on commit 09b5ac4

Please sign in to comment.