More work on porting unicode input

This commit is contained in:
Kovid Goyal
2023-02-15 17:14:09 +05:30
parent 2b87a601a0
commit 1321a96ae7
2 changed files with 18 additions and 10 deletions
+3
View File
@@ -87,6 +87,9 @@ func (self *table) set_codepoints(codepoints []rune, mode Mode, current_idx int)
}
self.mode = mode
self.layout_dirty = true
if current_idx > -1 && current_idx < len(self.codepoints) {
self.current_idx = current_idx
}
if self.current_idx >= len(self.codepoints) {
self.current_idx = 0
}