aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-13 12:22:18 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-13 13:32:43 +0100
commitcc7ce30fa6a2ebdb2e14d589b11520757e5a20e3 (patch)
tree8852d4330cf14f4cff292dd1b7e7c14da1aabb9d /vis-lua.h
parente0b157f56694a5b5e535083c8fc0bc0e1194c9dc (diff)
downloadvis-cc7ce30fa6a2ebdb2e14d589b11520757e5a20e3.tar.gz
vis-cc7ce30fa6a2ebdb2e14d589b11520757e5a20e3.tar.xz
text-motion: add functions to get/set position based on display width
This is inherently a tricky thing to do because we cannot rely on the current display state. The reason being that the position/cursor which is modified might not currently be in the visible area. Tabs are a particular problem because they have a variable display width. However this new code is certainly not worse than the current behaviour which relies on text_line_char_{get,set} and thus simply counts graphemes. Not yet completely convinced that this is the right approach.
Diffstat (limited to 'vis-lua.h')
0 files changed, 0 insertions, 0 deletions