summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorbrianhuster <phambinhanctb2004@gmail.com>2025-07-13 23:44:39 +0700
committerbrianhuster <phambinhanctb2004@gmail.com>2025-07-18 10:04:20 +0700
commit1255a8d88d508e6c11d0addcd67d3959a2fb76cf (patch)
treeae11af5a269ff5668952180a62e1a25bb1e92d1f /runtime/syntax/python.vim
parent444a8b3ec6375b03f1483a97095a00b067a499ec (diff)
refactor(tutor): reimplement interactive marks as extmark in Lua
Problem: From https://matrix.to/#/!cylwlNXSwagQmZSkzs:matrix.org/$Ofj-TFIsEMbp0O9OhE8xuZSNi-nhRLtZTOgs6JRLNrs?via=matrix.org&via=gitter.im&via=mozilla.org In lesson 2.6, users are asked to remove the second, forth and fifth lines with `dd` command, then they are asked to undo twice to make the text go back to original state. But after that, the mark ✗ appears again, which confuses the user because they think they do something wrong. This is a limitation with the current implementation, which is based on line number only. Solution: Reimplement interactive marks as extmarks in Lua. This also make the feature less fragile, as users can remove, add some arbitrary lines without breaking the interactive marks. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions