]> Sergey Matveev's repositories - st.git/commit
Fix cursor move with wide glyphs
authorQuentin Rameau <quinq@fifth.space>
Sun, 25 Feb 2024 00:31:31 +0000 (01:31 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 25 Feb 2024 10:56:43 +0000 (11:56 +0100)
commit7473a8d1a57e5f9aba41b953f4e498c35e1c9dc5
tree58b0baa2424b1e26c7661048ba2e429b52876067
parenta3f7420310be0fd778ef9fe2abf20edc2d8dc81a
Fix cursor move with wide glyphs

st would always move back 1 column,
even with wide glyhps (using more than a single column).

The glyph rune is set on its first column,
and the other ones are to 0,
so loop until we detect the start of the previous glyph.
st.c