1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00

GH-221 Rename a method

This commit is contained in:
Tae Won Ha 2016-07-31 20:53:51 +02:00
parent 75f922d4e7
commit 2530472729
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ class Grid: CustomStringConvertible {
return position.row * self.size.width + position.column
}
func regionOfCurrentWord(position: Position) -> Region {
func regionOfWord(at position: Position) -> Region {
let row = position.row
let column = position.column

View File

@ -859,7 +859,7 @@ extension NeoVimView: NeoVimUiBridgeProtocol {
if string == " " {
self.setNeedsDisplay(cellPosition: curPos)
} else {
self.setNeedsDisplay(region: self.grid.regionOfCurrentWord(curPos))
self.setNeedsDisplay(region: self.grid.regionOfWord(at: curPos))
}
} else {
self.setNeedsDisplay(cellPosition: curPos)