unique ref

This commit is contained in:
aarne
2004-08-13 13:21:46 +00:00
parent a760544742
commit 69aa3248d2
4 changed files with 18 additions and 14 deletions

View File

@@ -310,7 +310,7 @@ mkRefineMenuAll env sstate =
[(CSelectCand i, prCand (t,i)) | (t,i) <- zip cands [0..]]
where
prRef (f,t) =
prRef (f,(t,_)) =
(ifShort "r" "Refine" +++ prOrLinRef f +++ ifTyped (":" +++ prt_ t),
"r" +++ prRefinement f)
prClip i t =
@@ -474,7 +474,9 @@ displaySState env state =
(prState (stateSState state), msgSState state, menuSState env state)
menuSState :: CEnv -> SState -> [(String,String)]
menuSState env state = [(s,c) | (_,(s,c)) <- mkRefineMenuAll env state]
menuSState env state = if null cs then [("[NO ALTERNATIVE]","")] else cs
where
cs = [(s,c) | (_,(s,c)) <- mkRefineMenuAll env state]
printname :: CEnv -> SState -> G.Fun -> String
printname env state f = case getOptVal opts menuDisplay of