diff options
author | tron <tron@pkgsrc.org> | 1999-01-25 19:41:37 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-01-25 19:41:37 +0000 |
commit | c30a8934841efb23c51596e739e8caa606d39619 (patch) | |
tree | 24ef395e34058aa88cb4fd6f3792565e63052866 /news/knews | |
parent | b93896794085ac809bc39a8839199a1986428399 (diff) | |
download | pkgsrc-c30a8934841efb23c51596e739e8caa606d39619.tar.gz |
Two fixes by Christian Bauernfeind:
- fix broken tabulator rendering
- fix a typo
Diffstat (limited to 'news/knews')
-rw-r--r-- | news/knews/patches/patch-af | 35 | ||||
-rw-r--r-- | news/knews/patches/patch-ag | 13 |
2 files changed, 48 insertions, 0 deletions
diff --git a/news/knews/patches/patch-af b/news/knews/patches/patch-af new file mode 100644 index 00000000000..1c7fb892102 --- /dev/null +++ b/news/knews/patches/patch-af @@ -0,0 +1,35 @@ +$NetBSD: patch-af,v 1.1 1999/01/25 19:41:37 tron Exp $ + +--- Widgets/ArtText.c.orig Fri Jan 9 18:16:12 1998 ++++ Widgets/ArtText.c Mon Jan 25 20:29:37 1999 +@@ -476,7 +476,7 @@ + if (str[i] != '\t') + res[j++] = str[i]; + else { +- int m = 8 - (j & 7); ++ int m = 7 - (j % 8); + + while (m-- >= 0) + res[j++] = ' '; +@@ -1750,16 +1750,17 @@ + { + ArtTextWidget w = (ArtTextWidget)gw; + TSNode *node; +- long n; ++ long n,j=0; + + for (n = 0 ; str[n] != '\0' ; n++) { + if (str[n] == '\t') { +- long i = 8 - (n % 8); ++ long i = 7 - ((n + j) % 8); + +- if (sel_start > n) ++ if (sel_start > (n + j)) + sel_start += i; +- if (sel_stop > n) ++ if (sel_stop > (n + j)) + sel_stop += i; ++ j += i; + } + } + diff --git a/news/knews/patches/patch-ag b/news/knews/patches/patch-ag new file mode 100644 index 00000000000..f537fb6c93f --- /dev/null +++ b/news/knews/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1 1999/01/25 19:41:37 tron Exp $ + +--- src/save.c.orig Fri Jan 9 18:16:23 1998 ++++ src/save.c Mon Jan 25 20:29:37 1999 +@@ -1049,7 +1049,7 @@ + } + + if (report->stop - report->start < MIN_URL_LEN) { +- set_message("Url to short!", True); ++ set_message("Url too short!", True); + return; + } + |