]> git.neil.brown.name Git - edlib.git/commit
linecount: fix mark used for 'goto'.
authorNeilBrown <neil@brown.name>
Sun, 2 Jul 2023 11:39:47 +0000 (21:39 +1000)
committerNeilBrown <neil@brown.name>
Wed, 12 Jul 2023 22:17:52 +0000 (08:17 +1000)
commitc92a7e0fa41743fb4962146c9066347f453cf0c4
tree7d8e87763276bcb2dee9433518af1b30121095e4
parent29bb354806f422fe5c5f31f74bfa7c56f1c83edf
linecount: fix mark used for 'goto'.

The mark passed to CountLines/goto:line as 'mark' is handed to
doc:GotoLine as 'mark2', but that function expects 'mark'.

This works as the doc: function always gets point for mark if nothing
else is given.  But it is wrong. Let's fix it.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linecount.c