OSDN Git Service
(root)
/
fooeditengine
/
FooEditEngine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e6b39
)
マウスから選択できなくなるバグを修正した
author
konekoneko
<test2214@hotmail.co.jp>
Sat, 5 Nov 2016 05:30:49 +0000
(11:00 +0530)
committer
konekoneko
<test2214@hotmail.co.jp>
Sat, 5 Nov 2016 05:30:49 +0000
(11:00 +0530)
Core/Controller.cs
patch
|
blob
|
history
diff --git
a/Core/Controller.cs
b/Core/Controller.cs
index
ad1c9cc
..
c8001a3
100644
(file)
--- a/
Core/Controller.cs
+++ b/
Core/Controller.cs
@@
-732,9
+732,12
@@
namespace FooEditEngine
public void MoveCaretAndSelect(TextPoint tp)
{
int CaretPostion = this.View.GetIndexFromLayoutLine(tp);
+ //キャレットを移動するとアンカーインデックスが再設定されてしまうので覚えておく
+ int oldAnchorIndex = this.Document.AnchorIndex;
this.Document.Select(this.Document.AnchorIndex, CaretPostion - this.Document.AnchorIndex);
this.View.JumpCaret(tp.row, tp.col);
this.View.AdjustCaretAndSrc();
+ this.Document.AnchorIndex = oldAnchorIndex;
}
/// <summary>