]> git.eshelyaron.com Git - emacs.git/commit
Fix 'move-to-column' when invisible text follows a TAB
authorEli Zaretskii <eliz@gnu.org>
Wed, 30 Sep 2020 14:33:58 +0000 (17:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 30 Sep 2020 14:33:58 +0000 (17:33 +0300)
commita190a446ee2be283dbd48351af507d7c64b1af9e
tree39dfb497e518ab921bc2c45e8e31f270796f369c
parent56d6e29d8063552b6a293f67f91ce6967913d928
Fix 'move-to-column' when invisible text follows a TAB

* src/indent.c (scan_for_column): Accept 2 more arguments, and
report through them the position corresponding to PREVCOL.  All
callers changed.
(Fmove_to_column): Use the prev_col's position to test for a TAB
instead of assuming that the TAB is just before point (which is
false when there's invisible text around).  (Bug#43587)

* test/src/indent-tests.el: New file.
src/indent.c
test/src/indent-tests.el [new file with mode: 0644]