File: increase-maxmulti.diff

package info (click to toggle)
kdrill 6.5deb2-13.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,392 kB
  • sloc: ansic: 7,640; makefile: 47
file content (25 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: wanderer at fastmail dot fm
Subject: increase maximum search results to 1000

The search component of kdrill imposes a hard limit of 200 results to all kanji                                                                      
searches, and provides no way to get at any results beyond that limit.                                                                               
                                                                                                                                                     
I have routinely needed to be able to look through all results, well past that                                                                       
limit. I am therefore running with the attached simple one-line patch, which                                                                         
raises the limit to 1000. I have not noticed any significant increase in e.g.                                                                        
memory requirements as a result.

Bug-Debian: http://bugs.debian.org/645650

diff -Naur kdrill6.5-old//multikanji.c kdrill6.5//multikanji.c
--- kdrill6.5-old//multikanji.c	2011-07-16 20:14:07.587370542 -0400
+++ kdrill6.5//multikanji.c	2011-07-16 20:16:48.871473678 -0400
@@ -53,7 +53,7 @@
 
 /* MAXMULTI == max translation lines we will hold in multi-window */
 /* If external routine wants to know this value, call getMultiMax() */
-#define MAXMULTI 200 
+#define MAXMULTI 1000