Skip to content

Commit

Permalink
Update api.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 authored Oct 14, 2022
1 parent b6340c4 commit e6bab37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/smart-splits/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ end
---@param direction string direction to move
---@return boolean whether we moved with tmux or not
local function move_cursor_tmux(direction, at_edge_and_moving_to_edge)
local tmux = require('smart-splits.tmux')
if not tmux.current_session_is_tmux() then
return
end

local dir_key = dir_keys_tmux[direction]
local tmux_moved = move_tmux_inner(dir_key)
if tmux_moved or not at_edge_and_moving_to_edge then
Expand Down

0 comments on commit e6bab37

Please sign in to comment.