Random fixes
This commit is contained in:
@@ -155,7 +155,8 @@ void Container::StyleCodeHighlight(const char* text, int row, int col, bool dohi
|
||||
else if(CFG->highlighturls) {
|
||||
const char *begin;
|
||||
|
||||
if((begin = url_begin(ptr)) != NULL) {
|
||||
if(((begin = url_begin(ptr)) != NULL) and
|
||||
((ptr == text) or (not isxalnum(ptr[-1]) and (ptr[-1] != '@')))) {
|
||||
const char *end = begin+strcspn(begin, " \t\"\'<>()[]");
|
||||
|
||||
if(ispunct(end[-1]) and (end[-1] != '/'))
|
||||
|
@@ -962,7 +962,7 @@ void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
||||
update_statuslinef(LNG->ImportStatus, filenamebuf.c_str());
|
||||
|
||||
// Start the file picker
|
||||
fileselected = wpickfile(win_minrow, win_mincol, win_maxrow, win_maxcol, W_BMENU, C_MENUB, C_MENUW, C_MENUS, NO, filenamebuf, maketitle);
|
||||
fileselected = wpickfile(win_minrow, win_mincol, win_maxrow, win_maxcol, W_BMENU, C_MENUB, C_MENUW, C_MENUS, NO, filenamebuf, maketitle_and_status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -225,6 +225,9 @@ bool set_to_address(GMsg* msg, gsetaddr* toname, gsetaddr* toaddr, gsetaddr* fro
|
||||
return true;
|
||||
}
|
||||
|
||||
*msg->iaddr = NUL;
|
||||
*msg->realto = NUL;
|
||||
|
||||
if(lookup) {
|
||||
strcpy(buf1, toname->buf);
|
||||
strcpy(buf2, msg->to);
|
||||
@@ -236,8 +239,6 @@ bool set_to_address(GMsg* msg, gsetaddr* toname, gsetaddr* toaddr, gsetaddr* fro
|
||||
strtrim(buf);
|
||||
if(*buf == NUL)
|
||||
strcpy(buf, " ");
|
||||
*msg->iaddr = NUL;
|
||||
*msg->realto = NUL;
|
||||
|
||||
if(*buf) {
|
||||
Addr addr;
|
||||
|
@@ -393,6 +393,7 @@ int cmp_quotes(char* q1, char* q2);
|
||||
int is_quote(const char* ptr);
|
||||
int IsQuoteChar(const char* s);
|
||||
void maketitle();
|
||||
int maketitle_and_status(char *);
|
||||
void ProgMeter(int mode, int xx, int yy, long len, long barlen, int attr, long pos, long size);
|
||||
int ReadCfg(const char* cfg, int ignoreunknown=false);
|
||||
void ScanMsgTxtForAddr(GMsg* msg);
|
||||
|
@@ -282,6 +282,14 @@ void maketitle() {
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
int maketitle_and_status(char *dir) {
|
||||
|
||||
maketitle();
|
||||
update_statuslinef(LNG->ImportStatus, dir);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void set_title(const char* t, int p, int a) {
|
||||
|
Reference in New Issue
Block a user