「選択範囲を上下に移動」の版間の差分
誤って除去したセミコロンの追加 |
行番号をクリック&ドラッグで行を範囲選択した状態でマクロを実行すると移動する行が1行増える不具合を修正 |
||
| 16行目: | 16行目: | ||
var ty = s.GetTopPointY(mePosLogical); | var ty = s.GetTopPointY(mePosLogical); | ||
var by = s.GetBottomPointY(mePosLogical); | var by = s.GetBottomPointY(mePosLogical); | ||
var bx = s.GetBottomPointX(mePosLogical); | |||
// 選択範囲の末尾が行頭にあるときの調整 | |||
if (ty != by && bx == 1) { | |||
by--; | |||
} | |||
if (ty > 1) { | if (ty > 1) { | ||
Redraw = false; | Redraw = false; | ||
| 96行目: | 103行目: | ||
var ty = s.GetTopPointY(mePosLogical); | var ty = s.GetTopPointY(mePosLogical); | ||
var by = s.GetBottomPointY(mePosLogical); | var by = s.GetBottomPointY(mePosLogical); | ||
var bx = s.GetBottomPointX(mePosLogical); | |||
// 選択範囲の末尾が行頭にあるときの調整 | |||
if (ty != by && bx == 1) { | |||
by--; | |||
} | |||
if (document.GetLines(0) > by) { | if (document.GetLines(0) > by) { | ||
Redraw = false; | Redraw = false; | ||
スポンサーリンク