summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/externs.h1
-rw-r--r--src/util.c12
-rw-r--r--src/variable.c7
3 files changed, 4 insertions, 16 deletions
diff --git a/src/externs.h b/src/externs.h
index bf742c29..74cc34bd 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -188,7 +188,6 @@ extern bool_ is_autosave;
extern int artifact_bias;
extern FILE *text_out_file;
extern void (*text_out_hook)(byte a, cptr str);
-extern int text_out_wrap;
extern int text_out_indent;
extern bool_ show_inven_graph;
extern bool_ show_store_graph;
diff --git a/src/util.c b/src/util.c
index cf72eb1f..bc8478e2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -2440,11 +2440,8 @@ void text_out_to_screen(byte a, cptr str)
/* Obtain the cursor */
(void)Term_locate(&x, &y);
- /* Use special wrapping boundary? */
- if ((text_out_wrap > 0) && (text_out_wrap < wid))
- wrap = text_out_wrap;
- else
- wrap = wid;
+ /* Wrapping boundary */
+ wrap = wid;
/* Process the string */
for (s = str; *s; s++)
@@ -2531,8 +2528,7 @@ void text_out_to_screen(byte a, cptr str)
* Hook function for text_out(). Make sure that text_out_file points
* to an open text-file.
*
- * Long lines will be wrapped at text_out_wrap, or at column 75 if that
- * is not set; or at a newline character.
+ * Long lines will be wrapped at column 75 ; or at a newline character.
*
* You must be careful to end all file output with a newline character
* to "flush" the stored line position.
@@ -2543,7 +2539,7 @@ void text_out_to_file(byte a, cptr str)
static int pos = 0;
/* Wrap width */
- int wrap = (text_out_wrap ? text_out_wrap : 75);
+ int wrap = 75;
/* Current location within "str" */
cptr s = str;
diff --git a/src/variable.c b/src/variable.c
index 88728216..e4adb21d 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -185,13 +185,6 @@ void (*text_out_hook)(byte a, cptr str) = text_out_to_screen;
/*
- * Hack -- Where to wrap the text when using text_out(). Use the default
- * value (for example the screen width) when 'text_out_wrap' is 0.
- */
-int text_out_wrap = 0;
-
-
-/*
* Hack -- Indentation for the text when using text_out().
*/
int text_out_indent = 0;