Skip to content

Commit

Permalink
Macro-API: fix CmdLine.CurPos
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Apr 16, 2024
1 parent 100e89a commit 796c415
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions far/changelog
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
shmuel 2024-04-17 00:53:14+03:00 - build 6311

1. Macro-API: fix CmdLine.CurPos

--------------------------------------------------------------------------------
yjh 2024-04-16 11:49:47+03:00 - build 6310

Expand Down
2 changes: 1 addition & 1 deletion far/edit.cpp
Expand Up @@ -485,7 +485,7 @@ long long Edit::VMProcess(int OpCode, void* vParam, long long iParam)
case MCODE_V_ITEMCOUNT:
return m_Str.size();
case MCODE_V_CURPOS:
return GetLineCursorPos()+1;
return m_CurPos+1;
case MCODE_F_EDITOR_SEL:
{
const auto Action = static_cast<int>(std::bit_cast<intptr_t>(vParam));
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
6310
6311

0 comments on commit 796c415

Please sign in to comment.