Skip to content
Snippets Groups Projects
Commit 214442a1 authored by deuce's avatar deuce
Browse files

Prevent possible unkludging bug. This is unlikely to actually fix the real

problem however.
parent a7962bc7
No related branches found
No related tags found
No related merge requests found
......@@ -266,8 +266,13 @@ function unwrap_line(l)
line[l].kludged=false;
}
/* Get first word(s) of next line */
re=new RegExp("^(.{1,"+space+"}(?![^\\s])\\s*)","");
words=line[l+1].text.match(re);
if(space < 1) {
words=null;
}
else {
re=new RegExp("^(.{1,"+space+"}(?![^\\s])\\s*)","");
words=line[l+1].text.match(re);
}
if(words != null) {
line[l].text+=words[1];
line[l].attr+=line[l+1].attr.substr(0,words[1].length);
......@@ -1898,4 +1903,4 @@ if(edit_top==5 && info[0]!=subj) {
console.ctrlkey_passthru=oldpass;
bbs.sys_status=old_status;
console.clear();
exit(exit_code);
\ No newline at end of file
exit(exit_code);
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