Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Ready for release
  • Loading branch information
ubaldot committed May 1, 2023
1 parent 8792308 commit 622c280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/highlight_funcs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var list_sign_id_old = []
var list_sign_id = []



# Find lines range based on cell_delimiter
export def GetExtremes(display_range: bool = false): list<number>
var line_in = search("\^" .. b:cells_delimiter, 'cnbW')
Expand Down Expand Up @@ -48,8 +47,7 @@ export def HighlightCell(display_range: bool = false)
endif
# There is at least one cell
if line_in != 1 || line_out != line("$")
# ...and if the cursor moved into another cell, then update the
# signs
# if the cursor moved into another cell, then update the signs
if line_in != line_in_old || line_out != line_out_old
# counter_dbg = counter_dbg + 1
# echo counter_dbg
Expand Down
7 changes: 2 additions & 5 deletions lib/repl_funcs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var console_geometry = {"width": g:replica_console_width,
var open_buffers = {
\ "python": [],
\ "julia": []}
# \ "matlab" : []

# ====================================
# Functions
Expand Down Expand Up @@ -41,8 +40,7 @@ def ConsoleExists(): bool
# In case you are on a console, then b:console_name does not exists,
# therefore you have to check if it is a terminal with some console name.
elseif getbufvar(bufnr(), '&buftype') == "terminal"
\ && index(values(g:replica_console_names), bufname("%")) !=
-1
\ && index(values(g:replica_console_names), bufname("%")) != -1
return true
else
return false
Expand All @@ -54,8 +52,7 @@ def ConsoleWinID(): list<number>
# OBS! b:console_name does not exist for terminal windows!
if ConsoleExists()
if getbufvar(bufnr("%"), '&buftype') == "terminal"
\ && index(values(g:replica_console_names), bufname("%"))
!= -1
\ && index(values(g:replica_console_names), bufname("%")) != -1
# If we are on a console, then the current buffer is the console
return win_findbuf(bufnr())
else
Expand Down

0 comments on commit 622c280

Please sign in to comment.