X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fviewer.c;h=1b2e6b9bf5ced4e6d5905c4fae06d69d5e92268d;hb=2dcbfd8e30e5fe7109600349ebb2438223b12736;hp=97e62df7f9114dc354502df634c5f9a0ae66fcd3;hpb=51b2a847fc5798c5b0f56ae93f6e1355038df840;p=smdp.git diff --git a/src/viewer.c b/src/viewer.c index 97e62df..1b2e6b9 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -2,7 +2,7 @@ * Functions necessary to display a deck of slides in different color modes * using ncurses. Only white, red, and blue are supported, as they can be * faded in 256 color mode. - * Copyright (C) 2014 Michael Goehler + * Copyright (C) 2015 Michael Goehler * * This file is part of mdp. * @@ -713,7 +713,7 @@ void inline_display(WINDOW *window, const wchar_t *c, const int colors) { if (*i == L'!') i++; - if (wcschr(i, L']')[1] == L'(') { + if (wcschr(i, L']')[1] == L'(' && wcschr(i, L')')) { i++; // turn higlighting and underlining on