「選択範囲を上下に移動」の版間の差分
ソースコードの整形 |
ソースコードの単語の先頭文字を小文字に修正 |
||
| 13行目: | 13行目: | ||
#title = "選択範囲を上へ移動" | #title = "選択範囲を上へ移動" | ||
var s = | var s = document.selection; | ||
var ty = s.GetTopPointY(mePosLogical); | var ty = s.GetTopPointY(mePosLogical); | ||
var by = s.GetBottomPointY(mePosLogical); | var by = s.GetBottomPointY(mePosLogical); | ||
| 22行目: | 22行目: | ||
// ブックマークの待避 | // ブックマークの待避 | ||
var bookmarkList = GetBookmarkList( | var bookmarkList = GetBookmarkList(document, ty - 1, by, true); | ||
// 選択行を上へ移動 | // 選択行を上へ移動 | ||
| 59行目: | 59行目: | ||
top = (top == null || top < 1) ? 1 : top; | top = (top == null || top < 1) ? 1 : top; | ||
bottom = (bottom == null || bottom > lines) ? lines : bottom; | bottom = (bottom == null || bottom > lines) ? lines : bottom; | ||
var s = doc. | var s = doc.selection; | ||
var b = []; | var b = []; | ||
if (lines == 1) { | if (lines == 1) { | ||
| 93行目: | 93行目: | ||
#title = "選択範囲を下へ移動" | #title = "選択範囲を下へ移動" | ||
var s = | var s = document.selection | ||
var ty = s.GetTopPointY(mePosLogical); | var ty = s.GetTopPointY(mePosLogical); | ||
var by = s.GetBottomPointY(mePosLogical); | var by = s.GetBottomPointY(mePosLogical); | ||
if ( | if (document.GetLines(0) > by) { | ||
Redraw = false; | Redraw = false; | ||
var sx = ScrollX; | var sx = ScrollX; | ||
| 102行目: | 102行目: | ||
// ブックマークの待避 | // ブックマークの待避 | ||
var bookmarkList = GetBookmarkList( | var bookmarkList = GetBookmarkList(document, ty, by + 1, true); | ||
// 選択行を下へ移動 | // 選択行を下へ移動 | ||
| 139行目: | 139行目: | ||
top = (top == null || top < 1) ? 1 : top; | top = (top == null || top < 1) ? 1 : top; | ||
bottom = (bottom == null || bottom > lines) ? lines : bottom; | bottom = (bottom == null || bottom > lines) ? lines : bottom; | ||
var s = doc. | var s = doc.selection; | ||
var b = []; | var b = []; | ||
if (lines == 1) { | if (lines == 1) { | ||
スポンサーリンク