Skip to content

Commit

Permalink
Fix #492
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyosi committed Aug 8, 2023
1 parent e5fd8f3 commit 92f16b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ func (ws *Workspace) initLazyLoadUI() {
editor.isWindowNowActivated = false

ws.widget.ConnectFocusInEvent(func(event *gui.QFocusEvent) {
go ws.nvim.Command("if exists('#FocusGained') | doautocmd <nomodeline> FocusGained | endif")
ws.nvim.SetFocusUI(true)
})
ws.widget.ConnectFocusOutEvent(func(event *gui.QFocusEvent) {
go ws.nvim.Command("if exists('#FocusLost') | doautocmd <nomodeline> FocusLost | endif")
ws.nvim.SetFocusUI(false)
})

go func() {
Expand Down

0 comments on commit 92f16b3

Please sign in to comment.