Commit 2e9f3a1
Handle out-of-band lines in expandtab (#154)
The procedure that causes the bug:
* open vi with set expandtab
* yy -> yank something
* :di b -> shows that the default buffer have the text copied
* :!ls >/dev/null run an external command without filtering lines, all
commands are the same
* :di b -> already shows something strange, outputting: **********
default buffer (character mode) note that when the buffers are empty :di
b shows: No cut buffers to display.
* p -> trying to paste segfault
A bug that does not segfault occurs also with the bang command, but when
filtering lines:
* open vi with set expandtab
* yy -> yank something and then move to an other line
* :di b -> shows that the default buffer have the text copied
* :.!ls >/dev/null run an external command filtering any range of lines,
both one address or two is the same, noticing the content of the line
you are on
* :di b -> shows that the line(s) being put into the default buffer
is(are) the line(s) that is(are) now under the cursor, not the original
deleted ones
Running the bang without filtering files leaves the sp->gp->dcb_store as
a dangling pointer.
Closes: #151
Co-authored-by: Jerry Fletcher <mail@jerryfletcher.org>1 parent 99779b8 commit 2e9f3a1
4 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| 182 | + | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments