mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Slight cleanup of the previous commit: save one arithmetical operation.
This commit is contained in:
@@ -612,7 +612,7 @@ function InputBox:ModeDependentCommands()
|
||||
table.insert(self.charlist, string.sub(r,i,i))
|
||||
end
|
||||
self.charpos = #self.charlist + 1
|
||||
self.input_cur_x = self.input_start_x + (self.charpos-1)*self.fwidth
|
||||
self.input_cur_x = self.input_start_x + #self.charlist * self.fwidth
|
||||
self.input_string = r
|
||||
self:refreshText()
|
||||
self.cursor:moveHorizontal(#self.charlist*self.fwidth)
|
||||
|
||||
Reference in New Issue
Block a user