1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-27 15:53:31 +03:00

GH-275 Display more rects for cursor

This commit is contained in:
Tae Won Ha 2016-09-11 18:12:43 +02:00
parent 5a6546daf1
commit d09a300349
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -1045,17 +1045,17 @@ extension NeoVimView: NeoVimUiBridgeProtocol {
// redraw the put position.
if self.usesLigatures {
self.setNeedsDisplay(region: self.grid.regionOfWord(at: self.grid.putPosition))
self.setNeedsDisplay(region: self.grid.regionOfWord(at: self.grid.screenCursor))
self.setNeedsDisplay(region: self.grid.regionOfWord(at: position))
self.setNeedsDisplay(region: self.grid.regionOfWord(at: screenCursor))
} else {
self.setNeedsDisplay(cellPosition: self.grid.putPosition)
self.setNeedsDisplay(screenCursor: screenCursor)
// Redraw where the cursor has been till now, ie remove the current cursor.
self.setNeedsDisplay(cellPosition: self.grid.screenCursor)
self.setNeedsDisplay(cellPosition: position)
self.setNeedsDisplay(cellPosition: screenCursor)
}
self.setNeedsDisplay(cellPosition: self.grid.nextCellPosition(self.grid.putPosition))
// Redraw where the cursor has been till now, ie remove the current cursor.
self.setNeedsDisplay(cellPosition: self.grid.screenCursor)
self.grid.goto(position)
self.grid.moveCursor(screenCursor)
}