integrate NagView

This commit is contained in:
Takase
2021-03-13 12:57:52 +01:00
committed by GitHub
parent d01ee8d2f4
commit c0ad86de8c
4 changed files with 177 additions and 7 deletions
+7
View File
@@ -5,6 +5,7 @@ local keymap = require "core.keymap"
local Object = require "core.object"
local View = require "core.view"
local CommandView = require "core.commandview"
local NagView = require "core.nagview"
local DocView = require "core.docview"
@@ -622,6 +623,12 @@ end
function RootView:on_mouse_moved(x, y, dx, dy)
if core.active_view == core.nag_view then
system.set_cursor("arrow")
core.active_view:on_mouse_moved(x, y, dx, dy)
return
end
if self.dragged_divider then
local node = self.dragged_divider
if node.type == "hsplit" then