Commit 07a8027
authored
Do not add lines to kill-ring when trimming the gnuplot buffer (#72)
I noticed that when the number of lines in the gnuplot comint buffer
exceeds the maximum amount of lines, the extra lines are killed using
kill-line, which causes the kill-ring to be polluted with those lines.
This commit replaces kill-ring by delete-region, which does not have
this side effect. The while loop also has been replaced by dotimes for
clarity.1 parent 116cad8 commit 07a8027
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
| 1360 | + | |
| 1361 | + | |
1363 | 1362 | | |
1364 | | - | |
1365 | | - | |
| 1363 | + | |
1366 | 1364 | | |
| 1365 | + | |
1367 | 1366 | | |
1368 | 1367 | | |
1369 | 1368 | | |
| |||
0 commit comments