Fix crash when execute :xccmd jumpToNextCounterPart while the counter part file has selection lange. The root cause was that when switching to new editor, XVim tries to sync the state of the selection range to XVim's internal state. This means XVim tries to enter Visual mode if the new editor already has selection(Xcode remembers the last state of the document). Unfortunately to sync it, XVim emulates as if 'v' has pushed(This is not really good way). What happens is that if the ":xccmd" command is mapped to a short-cut key it the evaluator stack remembers the state of the key mapping. So when 'v' is emulated XVim tries to execute the mapped key again. The fix is that when execute something, clear the mapping state before executing something. This is just easy fix and temporary one. Still need to fix the process when new editor has selectin range.
Fix crash when execute :xccmd jumpToNextCounterPart while the counter part file has selection lange. The root cause was that when switching to new editor, XVim tries to sync the state of the selection range to XVim's internal state. This means XVim tries to enter Visual mode if the new editor already has selection(Xcode remembers the last state of the document). Unfortunately to sync it, XVim emulates as if 'v' has pushed(This is not really good way). What happens is that if the ":xccmd" command is mapped to a short-cut key it the evaluator stack remembers the state of the key mapping. So when 'v' is emulated XVim tries to execute the mapped key again. The fix is that when execute something, clear the mapping state before executing something. This is just easy fix and temporary one. Still need to fix the process when new editor has selectin range.

thatchristoph/XVim,raimon49/XVim,dengcqw/XVim_x,brucehappy/XVim,lisuxia1992/XVim,kgoodier/XVim,pebble8888/XVim,otfsenter/XVim,tkuichooseyou/XVim,XVimProject/XVim,liwangwang123/XVim,antmd/XVim,EmuxEvans/XVim,tonyd256/XVim,gecko655/XVim,xuebuhui52011/XVim,scottsievert/XVim,sunzeboy/XVim,pebble8888/XVim,scottsievert/XVim,yixiang/XVim,tkuichooseyou/XVim,antmd/XVim,raimon49/XVim,EmuxEvans/XVim,rokemoon/XVim,tanxxjun321/XVim,ishkawa/XVim,brucehappy/XVim,yixiang/XVim,SampleLiao/XVim,tonyd256/XVim,EmuxEvans/XVim,weizhenwei/XVim,hyperspacemark/XVim,kgoodier/XVim,N4tr0n/XVim,weizhenwei/XVim,squarefrog/XVim,dengcqw/XVim_x,tkuichooseyou/XVim,teemobean/XVim,tanxxjun321/XVim,hyperspacemark/XVim,tkuichooseyou/XVim,liwangwang123/XVim,sunzeboy/XVim,squarefrog/XVim,weizhenwei/XVim,XVimProject/XVim,dengcqw/XVim_x,dengcqw/XVim_x,ishkawa/XVim,hmuronaka/XVim,N4tr0n/XVim,rokemoon/XVim,kgoodier/XVim,Chenkaiang/XVim,ishkawa/XVim,tanxxjun321/XVim,SampleLiao/XVim,otfsenter/XVim,XVimProject/XVim,antmd/XVim,teemobean/XVim,xuebuhui52011/XVim,tonyd256/XVim,thatchristoph/XVim,SampleLiao/XVim,lisuxia1992/XVim,hyperspacemark/XVim,pebble8888/XVim,brucehappy/XVim,teemobean/XVim,weizhenwei/XVim,tonyd256/XVim,gecko655/XVim,kgoodier/XVim,antmd/XVim,hmuronaka/XVim,teemobean/XVim,Chenkaiang/XVim,yixiang/XVim,N4tr0n/XVim,thatchristoph/XVim,otfsenter/XVim,gecko655/XVim,yixiang/XVim,sunzeboy/XVim,xuebuhui52011/XVim,Chenkaiang/XVim,tanxxjun321/XVim,squarefrog/XVim,Chenkaiang/XVim,raimon49/XVim,otfsenter/XVim,EmuxEvans/XVim,squarefrog/XVim,liwangwang123/XVim,N4tr0n/XVim,scottsievert/XVim,hmuronaka/XVim,SampleLiao/XVim,thatchristoph/XVim,hyperspacemark/XVim,xuebuhui52011/XVim,lisuxia1992/XVim,raimon49/XVim,hmuronaka/XVim,pebble8888/XVim,ishkawa/XVim,scottsievert/XVim,sunzeboy/XVim,XVimProject/XVim,gecko655/XVim,liwangwang123/XVim,brucehappy/XVim,lisuxia1992/XVim