summaryrefslogtreecommitdiffstats
path: root/src/tui.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-25 16:14:30 -0300
committerAndrés <andmarti@gmail.com>2021-03-25 16:14:30 -0300
commit1688c5560da5771191f1436c14e572cd68343a3b (patch)
treec6c27bef96675443b4255dce50d160364f78b14f /src/tui.c
parent75bf89834c2ae449f4ae3c16459966f3734ba578 (diff)
Removed tabs. Corrected email address in files
Diffstat (limited to 'src/tui.c')
-rw-r--r--src/tui.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tui.c b/src/tui.c
index 797d1cc..84d9fc3 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013-2017, Andrés Martinelli <andmarti@gmail.com *
+ * Copyright (c) 2013-2021, Andrés Martinelli <andmarti@gmail.com> *
* All rights reserved. *
* *
* This file is a part of SC-IM *
@@ -804,7 +804,6 @@ void ui_show_content(WINDOW * win, int mxrow, int mxcol) {
int freezer = freeze_ranges && (freeze_ranges->type == 'r' || freeze_ranges->type == 'a') ? 1 : 0;
int freezec = freeze_ranges && (freeze_ranges->type == 'c' || freeze_ranges->type == 'a') ? 1 : 0;
- //for (row = 0; row <= mxrow && row < maxrows; row++) {
for (row = 0; row <= mxrow; row++) {
if (row >= maxrows) {
sc_error("i >= maxrows in show_content. please check calc_offscr_sc_rows.");
@@ -844,7 +843,6 @@ void ui_show_content(WINDOW * win, int mxrow, int mxcol) {
col = 0;
for (p = ATBL(tbl, row, col); col <= mxcol; p += nextcol - col, col = nextcol, c += fieldlen) {
- //for (p = ATBL(tbl, row, col); col <= mxcol && col < maxcols; p += nextcol - col, col = nextcol, c += fieldlen) {
if (col >= maxcols) {
sc_error("i >= maxcols in show_content. please check calc_offscr_sc_cols.");
break;
@@ -1023,7 +1021,7 @@ void ui_show_content(WINDOW * win, int mxrow, int mxcol) {
i += wcwidth(w);
}
- // we print text and number
+ // we print text and number
} else {
pad_and_align(text, num, fieldlen, align, (*p)->pad, out);
if (col == mxcol && wcswidth(out, wcslen(out)) > fieldlen)