Skip to content
Snippets Groups Projects
Commit ef0d8296 authored by rswindell's avatar rswindell
Browse files

When editing an existing file/message, use the current terminal screen width

for the word_wrap line length (not the default, 79 cols).
parent 85dd8b01
No related branches found
No related tags found
No related merge requests found
......@@ -1925,7 +1925,7 @@ if(f.open("r",false)) {
var quote_width = console.screen_columns - 1;
quote_line=make_lines(quote_msg(word_wrap(f.read(), quote_width - 3), quote_width),'');
} else
line=make_lines(word_wrap(f.read()),'');
line=make_lines(word_wrap(f.read(), console.screen_columns - 1),'');
f.close();
}
if(line.length==0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment