Commit 75a94b8
authored
Fix lines in scope widget appearing under wrong group (#889)
When dap.ui.Layer.render is called with start == nil and end_ == nil, assign
start = 0 only when the buffer contains a single, empty line. For all other
cases, assign start == line-count instead of start == line-count - 1, which
appears to be causing the line swapping issue.
Add a simple test case where the buffer already contains non-empty lines, and a
new line is added with start == nil and end_ == nil, which should now be
appended to the end.1 parent c1bfcd8 commit 75a94b8
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
| 475 | + | |
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| |||
0 commit comments