summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmds/cmds.c2
-rw-r--r--src/sc.h2
-rw-r--r--src/tui.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/src/cmds/cmds.c b/src/cmds/cmds.c
index b2d3cf7..e029d8d 100644
--- a/src/cmds/cmds.c
+++ b/src/cmds/cmds.c
@@ -682,7 +682,7 @@ struct enode * copye(struct enode *e, struct sheet * sh, int Rdelta, int Cdelta,
*/
void dorowformat(struct sheet * sh, int r, unsigned char size) {
struct roman * roman = session->cur_doc;
- if (size < 1 || size > UCHAR_MAX || size > SC_DISPLAY_ROWS) { sc_error("Invalid row format"); return; }
+ if (size < 1 || size > UCHAR_MAX || (! get_conf_int("nocurses") && size > SC_DISPLAY_ROWS)) { sc_error("Invalid row format"); return; }
if (r >= sh->maxrows && !growtbl(sh, GROWROW, 0, r)) r = sh->maxrows-1 ;
checkbounds(sh, &r, &(sh->curcol));
diff --git a/src/sc.h b/src/sc.h
index c313c97..5ff819d 100644
--- a/src/sc.h
+++ b/src/sc.h
@@ -78,7 +78,7 @@
#define PATHLEN 1024 /* maximum path length */
#define MAXCMD 160 /* for ! command and commands that use the pager */
-#define STDERRBUF 8192 /* stderr buffer size */
+#define STDERRBUF 1024 /* stderr buffer size */
#ifndef DFLT_PAGER
#define DFLT_PAGER "more" /* more is probably more widespread than less */
diff --git a/src/tui.c b/src/tui.c
index 7621993..eadbb9f 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -582,6 +582,7 @@ void ui_show_header() {
case EDIT_MODE:
mvwprintw(input_pad, 0, 1, "%ls", inputline);
wmove(input_pad, 0, inputline_pos + 1);
+ break;
}
int scroll = 0;
if (inputline_pos > COLS - 14) scroll += inputline_pos - COLS + 14;
@@ -670,8 +671,8 @@ void ui_print_mode() {
ui_set_ucolor(input_win, &ucolors[INPUT], DEFAULT_COLOR);
#endif
// show ':'
- mvwprintw(input_pad, 0, 0, ":");
- wmove(input_pad, 0, 1);
+ //mvwprintw(input_pad, 0, 0, ":");
+ //wmove(input_pad, 0, 1);
}
return;