diff options
author | mongo <mongo@iomega> | 2017-02-02 21:32:23 -0300 |
---|---|---|
committer | mongo <mongo@iomega> | 2017-02-02 21:32:23 -0300 |
commit | 1dfc23e5307cf0be19cd1f8e84537757a2137b53 (patch) | |
tree | 09b30213587533ba5b702e79678a6244b5b99663 /src/yank.c | |
parent | e5f0c2e9e1f497b6f17c15eebde598a71c89d3a7 (diff) |
order empty ents
Diffstat (limited to 'src/yank.c')
-rwxr-xr-x[-rw-r--r--] | src/yank.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yank.c b/src/yank.c index bfc8620..3e284bd 100644..100755 --- a/src/yank.c +++ b/src/yank.c @@ -126,7 +126,9 @@ void yank_area(int tlrow, int tlcol, int brrow, int brcol, char type, int arg) { struct ent * elm = *ATBL(tbl, r, c); // Important: each 'ent' element keeps the corresponding row and col - if (elm != NULL) add_ent_to_yanklist(elm); + if (elm == NULL) elm = lookat(r, c); + + add_ent_to_yanklist(elm); } return; } |