Compare commits
2
Commits
0c488bc313
...
034ac5d452
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
034ac5d452 | ||
|
|
9c34a4dd52 |
@@ -41,8 +41,12 @@ void ClipboardCopy(View *view) {
|
|||||||
For(view->carets) {
|
For(view->carets) {
|
||||||
if (GetSize(it.range) == 0) {
|
if (GetSize(it.range) == 0) {
|
||||||
Int line = PosToLine(buffer, it.range.min);
|
Int line = PosToLine(buffer, it.range.min);
|
||||||
Range line_range = GetLineRange(buffer, line);
|
Int eof = 0;
|
||||||
|
Range line_range = GetLineRange(buffer, line, &eof);
|
||||||
it.range = line_range;
|
it.range = line_range;
|
||||||
|
if (eof) {
|
||||||
|
it.range.min = ClampBottom(0ll, it.range.min - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,19 +50,19 @@ BSet ExecBuild(String windows_cmd, String unix_cmd, String working_dir = Project
|
|||||||
|
|
||||||
void CMD_Build1() {
|
void CMD_Build1() {
|
||||||
ExecBuild(Build1OnWindows, Build1OnUnix);
|
ExecBuild(Build1OnWindows, Build1OnUnix);
|
||||||
} RegisterCommand(CMD_Build1, "f1", "Run Build1OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
} RegisterCommand(CMD_Build1, "ctrl-b", "Run Build1OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
||||||
|
|
||||||
void CMD_Build2() {
|
void CMD_Build2() {
|
||||||
ExecBuild(Build2OnWindows, Build2OnUnix);
|
ExecBuild(Build2OnWindows, Build2OnUnix);
|
||||||
} RegisterCommand(CMD_Build2, "f2", "Run Build2OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
} RegisterCommand(CMD_Build2, "alt-b", "Run Build2OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
||||||
|
|
||||||
void CMD_Build3() {
|
void CMD_Build3() {
|
||||||
ExecBuild(Build3OnWindows, Build3OnUnix);
|
ExecBuild(Build3OnWindows, Build3OnUnix);
|
||||||
} RegisterCommand(CMD_Build3, "", "Run Build3OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
} RegisterCommand(CMD_Build3, "shift-b", "Run Build3OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
||||||
|
|
||||||
void CMD_Build4() {
|
void CMD_Build4() {
|
||||||
ExecBuild(Build4OnWindows, Build4OnUnix);
|
ExecBuild(Build4OnWindows, Build4OnUnix);
|
||||||
} RegisterCommand(CMD_Build4, "f4", "Run Build4OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
} RegisterCommand(CMD_Build4, "ctrl-alt-b", "Run Build4OnWindows or OnUnix in working directory, output is printed in a popup console and a special build buffer");
|
||||||
|
|
||||||
void CMD_RunFile() {
|
void CMD_RunFile() {
|
||||||
Scratch scratch;
|
Scratch scratch;
|
||||||
|
|||||||
Reference in New Issue
Block a user