summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandmarti1424 <scim.spreadsheet@gmail.com>2016-05-15 14:00:03 -0300
committerandmarti1424 <scim.spreadsheet@gmail.com>2016-05-15 14:00:03 -0300
commit35f3ebfa1f8cd1725a317cf9272c0de72a30704f (patch)
tree433b2942cb49edbf1c43abec451da7fbf8a67b1b /src
parent994d9c928bd9e531d3fbe0643f358715d6208831 (diff)
fix in dep_graph
Diffstat (limited to 'src')
-rw-r--r--src/cmds_edit.c3
-rw-r--r--src/dep_graph.c4
-rw-r--r--src/shift.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/cmds_edit.c b/src/cmds_edit.c
index 67c903b..2fb8d3e 100644
--- a/src/cmds_edit.c
+++ b/src/cmds_edit.c
@@ -1,5 +1,4 @@
#include <string.h>
-//#include <ncursesw/curses.h>
#include <ncurses.h>
#include <wchar.h>
#include <wctype.h>
@@ -91,7 +90,7 @@ void do_editmode(struct block * sb) {
return;
} else if (find_val(sb, OKEY_ENTER)) { // ENTER
- insert_or_edit_cell();
+ insert_or_edit_cell();
show_header(input_win);
return;
diff --git a/src/dep_graph.c b/src/dep_graph.c
index 9d0677e..31ca141 100644
--- a/src/dep_graph.c
+++ b/src/dep_graph.c
@@ -279,8 +279,8 @@ void delete_reference(vertexT * v_cur, vertexT * vc, int back_reference) {
edgeT * e_prev = eb;
edgeT * e_cur = eb->next;
while (e_cur != NULL && e_cur->connectsTo != v_cur) {
- e_prev = eb;
- e_cur = eb->next;
+ e_prev = e_cur;
+ e_cur = e_cur->next;
}
if (e_cur != NULL && e_cur->connectsTo == v_cur) {
e_prev->next = e_cur->next;
diff --git a/src/shift.c b/src/shift.c
index 2502311..ddd9c60 100644
--- a/src/shift.c
+++ b/src/shift.c
@@ -112,7 +112,7 @@ void shift_cells_right(int deltarows, int deltacols) {
for (c = maxcol; c >= curcol; c--) {
if ((p = *ATBL(tbl, r, c))) {
n = lookat(r, c + 1);
- (void) copyent(n, p, 0, 0, 0, 0, r, c, 0);
+ (void) copyent(n, p, 0, 1, r, 0, r, c, 0);
n->col++;
pp = ATBL(tbl, r, c);
clearent(*pp);